[FE 1.0] Don't throw empty intersection exception, return empty intersection type instead
This commit is contained in:
committed by
teamcity
parent
a798fe0b18
commit
5b5da025f4
+6
@@ -13670,6 +13670,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
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 {
|
||||
|
||||
+6
@@ -13670,6 +13670,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user