Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0
-
None
Description
@groovy.transform.CompileStatic class Thing { public <O> void contravariant(Class<? super O> type, O object) {} public <O> void invariant(Class<O> type, O object) {} void m() { invariant(String, "foo") contravariant(String, "foo") // fails, can't find method } }
Worked in rc-2, fails with 2.3.0 final. Haven't tested rc-4.