Community
Participate
Working Groups
Example: ----- class foo { def foo(CharSequence x) {} def foo(Comparable<?> x) {} def bar() { foo("foo") } } ----- this compiles to ------ public class foo { public Object foo(final CharSequence x) { return null; } public Object foo(final Comparable<?> x) { return null; } public Object bar() { Object _foo = this.foo("foo"); return _foo; } } ------- The Java code does not compile because of the error: "The method foo(CharSequence) is ambiguous for the type foo" I'd expect to see the same error in Xtend.
*** This bug has been marked as a duplicate of bug 393402 ***