Community
Participate
Working Groups
for the expression myList.sort( e | e.toString ) I got a marker about a static methods are not allowed. However, the problem is an incompatible argument (a comparator is expected)
I have renamed sortBy to sort in the library. So the example doesn't work anymore :-) But the problem is still there.
forget my last comment. The function is still named 'sortBy' and the problem can therefore reproduced like described in the initial comment.
Preliminary scheduled for 2.0RC1
postponed to SR1
not 2.1
With the given example and the actual state I got the following marker: Incompatible types. Expected Comparator<? super Object> but was (Object)=>String def test343091() { val myList = newArrayList() myList.sort( e | e.toString )//ERROR }
Was fixed in the meantime
Requested via bug 522520. -M.