Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt307.kt
T
2015-10-12 14:36:38 +03:00

11 lines
238 B
Kotlin
Vendored

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