[K/N] Rework is checks and as casts codegeneration

^KT-58707
^KT-59022
This commit is contained in:
Pavel Kunyavskiy
2023-06-01 10:06:01 +02:00
committed by Space Team
parent b2212b9275
commit f2520a9cb7
21 changed files with 316 additions and 90 deletions
@@ -3646,6 +3646,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/casts/kt54802.kt");
}
@Test
@TestMetadata("kt58707.kt")
public void testKt58707() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt58707.kt");
}
@Test
@TestMetadata("kt59022.kt")
public void testKt59022() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt59022.kt");
}
@Test
@TestMetadata("lambdaToUnitCast.kt")
public void testLambdaToUnitCast() throws Exception {
@@ -3724,6 +3724,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/casts/kt54802.kt");
}
@Test
@TestMetadata("kt58707.kt")
public void testKt58707() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt58707.kt");
}
@Test
@TestMetadata("kt59022.kt")
public void testKt59022() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt59022.kt");
}
@Test
@TestMetadata("lambdaToUnitCast.kt")
public void testLambdaToUnitCast() throws Exception {
@@ -3608,6 +3608,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/casts/kt54802.kt");
}
@Test
@TestMetadata("kt58707.kt")
public void testKt58707() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt58707.kt");
}
@Test
@TestMetadata("kt59022.kt")
public void testKt59022() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt59022.kt");
}
@Test
@TestMetadata("lambdaToUnitCast.kt")
public void testLambdaToUnitCast() throws Exception {
@@ -3647,6 +3647,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/casts/kt54802.kt");
}
@Test
@TestMetadata("kt58707.kt")
public void testKt58707() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt58707.kt");
}
@Test
@TestMetadata("kt59022.kt")
public void testKt59022() throws Exception {
runTest("compiler/testData/codegen/box/casts/kt59022.kt");
}
@Test
@TestMetadata("lambdaToUnitCast.kt")
public void testLambdaToUnitCast() throws Exception {