Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.12
-
None
Description
import groovy.transform.CompileStatic @CompileStatic trait Foo { static void go() { } } @CompileStatic trait Bar extends Foo { void doIt() { go() } }
The above code will produce the following:
[Static type checking] - Cannot find matching method Bar#go(). Please check if the declared type is right and if the method exists.
Attachments
Issue Links
- relates to
-
GROOVY-8854 MissingMethodException when a public method on a trait calls a static private one in a class hierarchy
- Closed
-
GROOVY-11299 ClassNode getField(String), getMethods(String) and others return from super interface when class uses extends
- Closed
- links to