Supported functional interfaces with generic parameters in codegen.

This commit is contained in:
Evgeny Gerashchenko
2013-03-18 21:01:27 +04:00
parent 3b558d575c
commit 91282b992d
5 changed files with 45 additions and 21 deletions
@@ -0,0 +1,8 @@
import java.util.*
fun box(): String {
val list = ArrayList(Arrays.asList(3, 2, 4, 8, 1, 5))
val expected = ArrayList(Arrays.asList(8, 5, 4, 3, 2, 1))
Collections.sort(list, Comparator { a, b -> b - a })
return if (list == expected) "OK" else list.toString()
}