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

7 lines
109 B
Kotlin

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