Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.0-rc-1
-
None
Description
Groovyc fails to compile this code with a message like 'method foo is already defined in B'
class A { def foo(a = ''){} } class B { @Delegate A a = new A() def foo(){} }
while these snippets are compiled pretty well
class A { def foo(a){} def foo(){} } class B { @Delegate A a = new A() def foo(){} }
class A { def foo(a=''){} } class B extends A{ def foo(){} }
IMHO there should be a warning (or nothing at all) instead of the compilation error.