Files
kotlin-fork/compiler/testData/codegen/box/elvis/genericNull.kt
T
2018-06-09 19:15:38 +03:00

10 lines
137 B
Kotlin
Vendored

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