Files
kotlin-fork/idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt
T
2015-09-22 15:00:24 +02:00

19 lines
219 B
Kotlin
Vendored

interface A {
fun foo(): Int
}
interface B: A {
override fun foo(): Int
override fun foo1(): Int
}
fun g(a: A) {
if (a is B) {
a.fo<caret>
}
}
// EXIST: foo
// EXIST: foo1
// NOTHING_ELSE