FIR: intersect return types of declarations in intersection scopes
^KT-54378 Fixed
This commit is contained in:
+12
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user