Files
kotlin-fork/idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt
T

22 lines
212 B
Kotlin
Vendored

// FIR_COMPARISON
interface A {
fun a()
}
interface B {
fun b()
}
interface C {
fun c()
}
fun take(a: A) {
if (a is B && a is C) {
a.<caret>
}
}
// EXIST: a
// EXIST: b
// EXIST: c