Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The following code fails with Verify error
@Mixin(Foo) class Bar {} @Category(Bar) class Foo { public x = 5 def foo() { print x //verify error because of the field reference } } new Bar().foo()
But if we use field 'x' outside of 'Foo' no errors happen
@Mixin(Foo) class Bar {} @Category(Bar) class Foo { public x = 5 def foo() { } } new Bar().x = 4 print new Bar().x //prints 5
So imho the first code snippet should not throw the error.