Files
kotlin-fork/compiler/testData/codegen/box/exclExcl/genericNull.kt
T
2016-11-09 21:41:12 +03:00

16 lines
256 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun <T> foo(t: T) {
t!!
}
fun box(): String {
try {
foo<Any?>(null)
} catch (e: Exception) {
return "OK"
}
return "Fail"
}