Control-Flow Analysis: Do not skip pseudocode for value arguments if they are matched with errors

This commit is contained in:
Alexey Sedunov
2016-11-02 15:33:41 +03:00
parent df38c70278
commit 0159ddbc49
6 changed files with 101 additions and 3 deletions
@@ -156,6 +156,12 @@ public class ControlFlowTestGenerated extends AbstractControlFlowTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/bugs/kt7761.kt");
doTest(fileName);
}
@TestMetadata("setWithTypeMismatch.kt")
public void testSetWithTypeMismatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/bugs/setWithTypeMismatch.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/cfg/controlStructures")
@@ -158,6 +158,12 @@ public class PseudoValueTestGenerated extends AbstractPseudoValueTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/bugs/kt7761.kt");
doTest(fileName);
}
@TestMetadata("setWithTypeMismatch.kt")
public void testSetWithTypeMismatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/bugs/setWithTypeMismatch.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/cfg/controlStructures")