Temporarily revert "more check for casts"

(because commit broke seveal tests)

This reverts commit 5d2dfcd48f.
This commit is contained in:
Stepan Koltsov
2011-11-24 15:24:10 +04:00
parent 648540ad0c
commit a79202b7e7
17 changed files with 5 additions and 143 deletions
@@ -1,6 +1,6 @@
fun typeName(a: Any?) : String {
return when(a) {
is java.util.ArrayList<*> => "array list"
is java.util.ArrayList<Int> => "array list"
else => "no idea"
}
}
@@ -8,4 +8,4 @@ fun typeName(a: Any?) : String {
fun box() : String {
if(typeName(java.util.ArrayList<Int> ()) != "array list") return "array list failed"
return "OK"
}
}