Files
kotlin/compiler/testData/codegen/patternMatching/is.jet
Stepan Koltsov a79202b7e7 Temporarily revert "more check for casts"
(because commit broke seveal tests)

This reverts commit 5d2dfcd48f.
2011-11-24 15:24:10 +04:00

11 lines
268 B
Plaintext

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"
}