Debugger: add tests for smart casted property

This commit is contained in:
Natalia Ukhorskaya
2015-08-25 15:49:46 +03:00
parent 19e8c9edb0
commit 576b4f445c
4 changed files with 20 additions and 0 deletions
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
(klass as B).funInB()
@@ -0,0 +1 @@
klass.funIn<caret>