Community
Participate
Working Groups
I am using Xtext 2.0 M6 In Java it is not allowed to have something like public void _doWithList(final List<String> a) { } public void _doWithList(final List<Integer> a) { } due type erasure. but it is allowed to have something like dispatch doWithList(List<String> a) { } dispatch doWithList(List<Integer> a) { } doSomethingWithList(List<String> a) { } doSomethingWithList(List<Integer> a) { } in your xtend2 file. i'd expect to get an error here too. similar problem for casts doSomeStuff(List<String> in) { return in as List<CharSequence> }
Pushed to master.
The check does not take generic methods into account. The following example does not result in any errors: def <T> bar(T t) { } def <T> bar(T t) { }
Closing all bugs that were set to RESOLVED before Neon.0