Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt630.kt
T

8 lines
126 B
Kotlin
Vendored

// FIR_IDENTICAL
// KT-630 Bad type inference
fun <T : Any> T?.sure() : T = this!!
val x = "lala".sure()
val s : String = x