Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3.7, 2.4.0-beta-3
-
None
Description
If a trait uses "super.foo()" then this passes the compiler even if there is no foo method defined in the hierarchy of the current trait. Example :
@groovy.transform.CompileStatic trait B { void bar(){super.foo()} } class X implements B{} new X().bar()
The compiler should complain for about the super.foo() call
Attachments
Issue Links
- is duplicated by
-
GROOVY-8021 Super in traits causes MissingMethodException
- Closed