added test for KT-248

This commit is contained in:
Alex Tkachman
2011-08-31 19:16:07 +02:00
parent 6fcd36f9bd
commit 60d8ada216
3 changed files with 13 additions and 2 deletions
@@ -0,0 +1,7 @@
fun box() : String {
val b = true as? Boolean //exception
val i = 1 as Int //exception
val j = 1 as Int? //ok
val s = "s" as String //ok
return "OK"
}