9 lines
106 B
Kotlin
Vendored
9 lines
106 B
Kotlin
Vendored
fun <T : Number?> foo(t: T) {
|
|
t?.toInt()
|
|
}
|
|
|
|
fun box(): String {
|
|
foo<Int?>(null)
|
|
return "OK"
|
|
}
|