Files
kotlin-fork/compiler/testData/codegen/box/elvis/genericNull.kt
T
Mark Punzalan 5afab1ac2b [FIR] FIR2IR: Populate calls with type arguments and function type
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00

9 lines
112 B
Kotlin
Vendored

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