Add compatibility resolve when variable has "bad" intersection type
#KT-39468 Fixed
This commit is contained in:
+10
@@ -10059,6 +10059,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/inference/commonSuperTypeOfErrorTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compatibilityResolveWhenVariableHasComplexIntersectionType.kt")
|
||||
public void testCompatibilityResolveWhenVariableHasComplexIntersectionType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/compatibilityResolveWhenVariableHasComplexIntersectionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("completeInferenceIfManyFailed.kt")
|
||||
public void testCompleteInferenceIfManyFailed() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt");
|
||||
@@ -10209,6 +10214,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/inference/intersectionTypeMultipleBoundsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionTypesWithContravariantTypes.kt")
|
||||
public void testIntersectionTypesWithContravariantTypes() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/intersectionTypesWithContravariantTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionWithEnum.kt")
|
||||
public void testIntersectionWithEnum() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/intersectionWithEnum.kt");
|
||||
|
||||
Reference in New Issue
Block a user