couple of fixes to allow generation of generic extension functions

This commit is contained in:
Dmitry Jemerov
2011-06-30 15:49:29 +02:00
parent 7f69d9a3d0
commit f7a04097bb
4 changed files with 12 additions and 3 deletions
@@ -16,6 +16,6 @@ fun box(): String {
list.add("Moscow")
list.add("Munich")
val m: ArrayList<String> = list.findAll({(name: String) => name.startsWith("M")})
val m: ArrayList<String> = list.findAll<String>({(name: String) => name.startsWith("M")})
return if (m.size() == 2) "OK" else "fail"
}