[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:
Dmitriy Novozhilov
2023-11-07 17:41:22 +02:00
committed by Space Team
parent c70a6425f5
commit 8578a0bf6a
30 changed files with 292 additions and 33 deletions
@@ -51308,6 +51308,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
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 {
@@ -51308,6 +51308,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
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 {