-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5.8
-
Fix Version/s: 3.0.0-rc-3
-
Component/s: Static compilation, Static Type Checker
-
Labels:None
@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.
- links to