[Wasm] Fix generic call return type for functions with default parameters

This commit is contained in:
Igor Yakovlev
2023-03-29 19:17:59 +02:00
committed by Space Team
parent b8f797af00
commit 44190937b0
15 changed files with 106 additions and 4 deletions
@@ -3389,6 +3389,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
}
@Test
@TestMetadata("genericReturnCast.kt")
public void testGenericReturnCast() throws Exception {
runTest("compiler/testData/codegen/box/casts/genericReturnCast.kt");
}
@Test
@TestMetadata("intersectionTypeMultipleBounds.kt")
public void testIntersectionTypeMultipleBounds() throws Exception {
@@ -3443,6 +3443,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
}
@Test
@TestMetadata("genericReturnCast.kt")
public void testGenericReturnCast() throws Exception {
runTest("compiler/testData/codegen/box/casts/genericReturnCast.kt");
}
@Test
@TestMetadata("intersectionTypeMultipleBounds.kt")
public void testIntersectionTypeMultipleBounds() throws Exception {
@@ -3443,6 +3443,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
}
@Test
@TestMetadata("genericReturnCast.kt")
public void testGenericReturnCast() throws Exception {
runTest("compiler/testData/codegen/box/casts/genericReturnCast.kt");
}
@Test
@TestMetadata("intersectionTypeMultipleBounds.kt")
public void testIntersectionTypeMultipleBounds() throws Exception {
@@ -3443,6 +3443,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
}
@Test
@TestMetadata("genericReturnCast.kt")
public void testGenericReturnCast() throws Exception {
runTest("compiler/testData/codegen/box/casts/genericReturnCast.kt");
}
@Test
@TestMetadata("intersectionTypeMultipleBounds.kt")
public void testIntersectionTypeMultipleBounds() throws Exception {