Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.4
-
None
-
Using JDK 6, Groovy 2.0.4.
Description
Compile the class below and you'll get the following compilation error:
[Static type checking] - The variable [myStringConstant] is undeclared.
import groovy.transform.CompileStatic
interface MyInterface {
String myStringConstant = 'STRING'
String myMethod()
}
@CompileStatic
class MyClass implements MyInterface {
@Override String myMethod()
}