Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Consider the following:
trait T { def setX(Number n) { println 'Number' } def setX(String s) { println 'String' } } class C implements T { void test() { T.super.x = 'x' } } new C().test()
"T.super.x = 'x'" should drive setX(String) but instead targets the Number overload and fails with GroovyCastException.