TypeInfo based on projections instead of other TypeInfo's

This commit is contained in:
Alex Tkachman
2011-09-05 20:12:12 +02:00
parent 234eafb0c1
commit 93a422ae0a
9 changed files with 208 additions and 50 deletions
@@ -0,0 +1,11 @@
fun typeName(a: Any?) : String {
return when(a) {
is java.util.ArrayList<Int> => "array list"
else => "no idea"
}
}
fun box() : String {
if(typeName(java.util.ArrayList<Int> ()) != "array list") return "array list failed"
return "OK"
}