Files
kotlin-fork/compiler/testData/codegen/box/exclExcl/genericNull.kt
T
2019-12-11 16:54:15 +03:00

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"
}