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

10 lines
136 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun <T : Number?> foo(t: T) {
t?.toInt()
}
fun box(): String {
foo<Int?>(null)
return "OK"
}