Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/intersectionScope.kt
T
2020-03-19 09:51:01 +03:00

15 lines
158 B
Kotlin
Vendored

interface A {
fun foo()
}
abstract class B : A {
override fun foo() {}
}
interface C : A {}
fun main(c: C) {
if (c !is B) return
c.foo()
}