Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This script:
class Baz { static void main(args) { println new Inner().inner() } static class Inner implements Bar { def inner() { FOO } } } interface Foo { int FOO = 1 } interface Bar extends Foo { int BAR = 3 }
Fails with:
Apparent variable 'FOO' was found in a static scope but doesn't refer to a local variable, static field or class...
Looks like an unintended side effect of fixing GROOVY-9598:
Attachments
Issue Links
- is broken by
-
GROOVY-9598 CompileStatic: Runtime error: Access outer class property from static inner in @DelegatesTo
- Closed