Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.fir.kt
T

13 lines
166 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
fun <T: Any> fooT22() : T? {
return null
}
fun foo1() {
fooT22()
}
val n : Nothing = null.sure()
fun <T : Any> T?.sure() : T = this!!