Files
kotlin-fork/idea/idea-completion/testData/basic/common/smartCast/SmartCastThis.kt
T
2015-08-14 18:10:40 +03:00

22 lines
235 B
Kotlin
Vendored

class C {
fun bar(){}
}
open class X {
fun Any.foo() {
if (this is C && this@X is Y) {
<caret>
}
}
}
class Y : X() {
fun y()
}
fun C.extFun(){}
// EXIST: bar
// EXIST: y
// EXIST: extFun