[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
@@ -38795,6 +38795,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
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("smartcastToStarType.kt")
|
||||
public void testSmartcastToStarType() throws Exception {
|
||||
|
||||
+6
@@ -39793,6 +39793,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
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("smartcastToStarType.kt")
|
||||
public void testSmartcastToStarType() throws Exception {
|
||||
|
||||
+6
@@ -38297,6 +38297,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
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("smartcastToStarType.kt")
|
||||
public void testSmartcastToStarType() throws Exception {
|
||||
|
||||
+6
@@ -38796,6 +38796,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
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("smartcastToStarType.kt")
|
||||
public void testSmartcastToStarType() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user