[FE 1.0] Don't throw empty intersection exception, return empty intersection type instead

This commit is contained in:
Victor Petukhov
2022-07-01 14:01:09 +02:00
committed by teamcity
parent a798fe0b18
commit 5b5da025f4
7 changed files with 91 additions and 1 deletions
@@ -13676,6 +13676,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/inference/discardInapplicableCandidateWithNotSatisfyingSelfType.kt");
}
@Test
@TestMetadata("dontThrowEmptyIntersectionException.kt")
public void testDontThrowEmptyIntersectionException() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/dontThrowEmptyIntersectionException.kt");
}
@Test
@TestMetadata("equalitySubstitutionInsideNonInvariantType.kt")
public void testEqualitySubstitutionInsideNonInvariantType() throws Exception {