Debugger: add tests for smart casted property
This commit is contained in:
+12
@@ -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
|
||||
+1
@@ -0,0 +1 @@
|
||||
(klass as B).funInB()
|
||||
+1
@@ -0,0 +1 @@
|
||||
klass.funIn<caret>
|
||||
+6
@@ -41,6 +41,12 @@ public class CodeFragmentCompletionHandlerTestGenerated extends AbstractCodeFrag
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("CastPropertyWithSmartCast.kt")
|
||||
public void testCastPropertyWithSmartCast() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/runtimeCast/CastPropertyWithSmartCast.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InsertExtFunction.kt")
|
||||
public void testInsertExtFunction() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/runtimeCast/InsertExtFunction.kt");
|
||||
|
||||
Reference in New Issue
Block a user