Check if the intersecting types aren't empty during finding the result type for variable fixation

^KT-47941 Fixed
This commit is contained in:
Victor Petukhov
2021-07-28 16:49:22 +03:00
committed by teamcityserver
parent 3eaa452f9e
commit 93f9d9dacd
7 changed files with 88 additions and 1 deletions
@@ -15234,6 +15234,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt");
}
@Test
@TestMetadata("kt47941.kt")
public void testKt47941() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt47941.kt");
}
@Test
@TestMetadata("kt702.kt")
public void testKt702() throws Exception {
@@ -15234,6 +15234,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt");
}
@Test
@TestMetadata("kt47941.kt")
public void testKt47941() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt47941.kt");
}
@Test
@TestMetadata("kt702.kt")
public void testKt702() throws Exception {