A better test for generic functions

This commit is contained in:
Andrey Breslav
2011-04-22 18:37:20 +04:00
parent fcdbc3141c
commit 913a01c107
+2
View File
@@ -18,4 +18,6 @@ fun test(l : java.util.List<Int>) {
Collections.emptyList<Int>()
Collections.emptyList<error>()</error>
Collections.singleton<Int>(1) : Set<Int>?
Collections.singleton<Int><error>(1.0)</error>
}