Files
kotlin/compiler/testData/codegen/box/elvis/genericNull.kt
2013-02-06 17:54:27 +04:00

9 lines
111 B
Kotlin

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