[FE 1.0] Fix reporting of non exhaustive when statement for whens with subject

^KT-48653 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-09-09 15:19:18 +03:00
parent f6ae6af741
commit 7a7672b0de
9 changed files with 145 additions and 4 deletions
@@ -32111,6 +32111,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/when/kt47922.kt");
}
@Test
@TestMetadata("kt48653_after.kt")
public void testKt48653_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/kt48653_after.kt");
}
@Test
@TestMetadata("kt48653_before.kt")
public void testKt48653_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/kt48653_before.kt");
}
@Test
@TestMetadata("kt9929.kt")
public void testKt9929() throws Exception {