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

9 lines
105 B
Kotlin

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