Files
kotlin/compiler/testData/codegen/box/exclExcl/genericNull.kt

13 lines
160 B
Kotlin
Vendored

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