FIR: Weaken some UPPER_BOUND_VIOLATED restrictions

See test data at starProjectionInsteadOutCaptured.kt

^KT-49412 Fixed
^KT-50230 Relates
^KT-48044 Fixed
This commit is contained in:
Denis.Zharkov
2021-12-28 18:05:24 +03:00
committed by teamcity
parent 814f4803b7
commit 9be4f818f4
15 changed files with 290 additions and 34 deletions
@@ -13881,6 +13881,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/inference/underscoredTypeInForbiddenPositions.kt");
}
@Test
@TestMetadata("unsoundness1.kt")
public void testUnsoundness1() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/unsoundness1.kt");
}
@Test
@TestMetadata("unsoundness2.kt")
public void testUnsoundness2() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/unsoundness2.kt");
}
@Test
@TestMetadata("useFunctionLiteralsToInferType.kt")
public void testUseFunctionLiteralsToInferType() throws Exception {
@@ -31083,6 +31095,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/typeParameters/repeatedBound.kt");
}
@Test
@TestMetadata("starProjectionInsteadOutCaptured.kt")
public void testStarProjectionInsteadOutCaptured() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/starProjectionInsteadOutCaptured.kt");
}
@Test
@TestMetadata("upperBoundCannotBeArray.kt")
public void testUpperBoundCannotBeArray() throws Exception {