Files
2020-06-15 11:33:42 +03:00

18 lines
193 B
Kotlin
Vendored

interface A {
val b: B
}
interface B
interface C : B {
fun q(): Boolean
}
fun A.foo(): String = ""
fun main(a: A?) {
val lb = a?.b
if (lb !is C) return
a.foo().length
}