Files
kotlin-fork/compiler/testData/codegen/box/exclExcl/genericNull.kt
T
2018-06-09 19:15:38 +03:00

14 lines
185 B
Kotlin
Vendored

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