Files
kotlin-fork/idea/idea-completion/testData/handlers/runtimeCast/CastPropertyWithSmartCast.kt
T
2015-08-26 12:16:08 +03:00

12 lines
164 B
Kotlin
Vendored

fun main(klass: A) {
<caret>if (a !is B) return
val a = 1
}
open class A
open class B: A {
fun funInB() {}
}
// INVOCATION_COUNT: 1
// RUNTIME_TYPE: B