[FIR2IR] Properly insert casts for smartcasts in argument position
Previously cast inserter didn't consider expected type for arguments of function calls ^KT-63257 Fixed
This commit is contained in:
committed by
Space Team
parent
c70a6425f5
commit
8578a0bf6a
+6
@@ -35109,6 +35109,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastFromGenericToString.kt")
|
||||
public void testSmartcastFromGenericToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartcastFromGenericToString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnDynamic.kt")
|
||||
public void testSmartcastOnDynamic() throws Exception {
|
||||
|
||||
Generated
+6
@@ -35109,6 +35109,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastFromGenericToString.kt")
|
||||
public void testSmartcastFromGenericToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartcastFromGenericToString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnDynamic.kt")
|
||||
public void testSmartcastOnDynamic() throws Exception {
|
||||
|
||||
+6
@@ -35109,6 +35109,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastFromGenericToString.kt")
|
||||
public void testSmartcastFromGenericToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartcastFromGenericToString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnDynamic.kt")
|
||||
public void testSmartcastOnDynamic() throws Exception {
|
||||
|
||||
+6
@@ -35109,6 +35109,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastFromGenericToString.kt")
|
||||
public void testSmartcastFromGenericToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartcastFromGenericToString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnDynamic.kt")
|
||||
public void testSmartcastOnDynamic() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user