Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.8
-
None
Description
@groovy.transform.CompileStatic def method() { new Runnable() { @Override void run() { foo // invalid reference } } }
Expected: Error:(6, 13) Groovyc: [Static type checking] - The variable [foo] is undeclared.
Actual: no error is reported.
Note that annotating run method works properly, i.e. the error is reported.
Attachments
Issue Links
- links to