Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.13
-
None
Description
Now following code failed to compile :
@CompileStatic class Gr { void f1(Object obj) { if (!(obj instanceof Runnable)) { return } f3(obj) // failed compiled here : Cannot find matching method Gr#f3(java.lang.Object). } void f3(Runnable r) { } }
I have implemented fix and can submit fix, if needed.
Idea doesn't highlight this code as error, but groovy compiler failed.
Attachments
Issue Links
- relates to
-
GROOVY-6429 flow typing detects unexpected error at if-else flow
- Closed
-
GROOVY-8321 !instanceof treated incorrectly in type checker
- Closed
- links to