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

11 lines
201 B
Kotlin
Vendored

// KT-307 Unresolved reference
open class AL {
fun get(i : Int) : Any? = i
}
interface ALE<T> : AL {
fun getOrNull(index: Int, value: T) : T {
return get(index) as? T ?: value
}
}