Don't create inconsistent types (with contradictive use site and declaration site variances) for star projections with corresponding contravariant type parameters during substitution
^KT-41388 Fixed
This commit is contained in:
Generated
+5
@@ -2498,6 +2498,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/casts/castGenericNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt")
|
||||
public void testDontCreateInconsistentTypeDuringStarProjectionSubstitution() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionTypeMultipleBounds.kt")
|
||||
public void testIntersectionTypeMultipleBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBounds.kt");
|
||||
|
||||
Generated
+5
@@ -2498,6 +2498,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/castGenericNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt")
|
||||
public void testDontCreateInconsistentTypeDuringStarProjectionSubstitution() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionTypeMultipleBounds.kt")
|
||||
public void testIntersectionTypeMultipleBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBounds.kt");
|
||||
|
||||
+5
@@ -2498,6 +2498,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/castGenericNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt")
|
||||
public void testDontCreateInconsistentTypeDuringStarProjectionSubstitution() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionTypeMultipleBounds.kt")
|
||||
public void testIntersectionTypeMultipleBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBounds.kt");
|
||||
|
||||
Reference in New Issue
Block a user