Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/localWithSmartCast.fir.kt
T

16 lines
239 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE
interface A {
operator fun getValue(x: Any?, y: Any?): Any?
}
interface B : A {
override fun getValue(x: Any?, y: Any?): Int
}
fun test(a: A) {
if (a is B) {
val x: Int by a
}
}