Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
This example:
import groovy.transform.CompileStatic interface FooA {} interface FooB {} class FooAB implements FooA, FooB {} @CompileStatic class TestGroovy { static void test() { println new TestGroovy().foo(new FooAB()) } def foo(FooB x) { 43 } def foo(FooA x) { 42 } } TestGroovy.test()
Should probably throw some kind of ambiguous method error during compilation to match Java (and dynamic Groovy's runtime error).
Attachments
Issue Links
- links to