Files
kotlin-fork/compiler/testData/codegen/box/exclExcl/genericNull.kt
T
2019-11-19 11:00:09 +03:00

14 lines
190 B
Kotlin
Vendored

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