[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
@@ -3473,6 +3473,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
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 {
@@ -3533,6 +3533,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
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 {
@@ -3533,6 +3533,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
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 {
@@ -3533,6 +3533,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
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 {