Description
interface Self { def bar() } @SelfType(Self) trait T { def foo() { println "foo called" bar() } } interface Middle extends T {} class C implements Middle {} new C().foo()
Above code compiles fine but fails at run time with:
groovy.lang.MissingMethodException: No signature of method: selftype.baseinterface.C.bar() is applicable for argument types: () values: []
The compilation should fail like if Middle was a trait.
Attachments
Issue Links
- links to