Files
kotlin-fork/idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt
T
Valentin Kipyatkov 54836113a7 Better test data format
2015-06-04 17:21:28 +03:00

19 lines
211 B
Kotlin
Vendored

trait A {
fun foo(): Int
}
trait 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