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

10 lines
142 B
Kotlin
Vendored

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