Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.1.3
-
None
-
Windows 7, Java 6, Groovy 2.1.3
Description
The following class gives the compilation error: [Static type checking] - The variable [CONSTANT_STRING] is undeclared.
import groovy.transform.CompileStatic @CompileStatic class MyClass extends MySuperClass { MyClass() { println CONSTANT_STRING } } @CompileStatic class MySuperClass implements MyInterface { } @CompileStatic interface MyInterface { String CONSTANT_STRING = 'abc' }