FIR: intersect return types of declarations in intersection scopes

^KT-54378 Fixed
This commit is contained in:
pyos
2022-10-13 10:21:44 +02:00
committed by teamcity
parent 2879e7a74c
commit ee921412fc
11 changed files with 133 additions and 19 deletions
@@ -29621,6 +29621,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/intersectionScope"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("capturedSpecificity.kt")
public void testCapturedSpecificity() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/intersectionScope/capturedSpecificity.kt");
}
@Test
@TestMetadata("conflictTypeParameters.kt")
public void testConflictTypeParameters() throws Exception {
@@ -29639,6 +29645,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/smartCasts/intersectionScope/flexibleTypes.kt");
}
@Test
@TestMetadata("intersectReturnType.kt")
public void testIntersectReturnType() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/intersectionScope/intersectReturnType.kt");
}
@Test
@TestMetadata("moreSpecificSetter.kt")
public void testMoreSpecificSetter() throws Exception {