Files
kotlin-fork/backend.native/tests/external/codegen/box/exclExcl/genericNull.kt
T
2017-03-13 15:31:46 +03:00

13 lines
160 B
Kotlin

fun <T> foo(t: T) {
t!!
}
fun box(): String {
try {
foo<Any?>(null)
} catch (e: Exception) {
return "OK"
}
return "Fail"
}