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:
+18
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user