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

13 lines
209 B
Kotlin
Vendored

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