JVM KT-47365 add box test
This commit is contained in:
committed by
teamcityserver
parent
7535f142c0
commit
c26d71c4ef
+6
@@ -42442,6 +42442,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
enum class EType {
|
||||
A
|
||||
}
|
||||
|
||||
class Wrapper(var t: EType?)
|
||||
|
||||
fun box(): String {
|
||||
val l = listOf(Wrapper(EType.A), Wrapper(null))
|
||||
|
||||
val ll = l.map {
|
||||
when (it.t) {
|
||||
EType.A -> "O"
|
||||
null -> "K"
|
||||
}
|
||||
}
|
||||
|
||||
return ll[0] + ll[1]
|
||||
}
|
||||
+6
@@ -42400,6 +42400,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
|
||||
+6
@@ -42442,6 +42442,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
|
||||
+5
@@ -34165,6 +34165,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -28515,6 +28515,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
Generated
+5
@@ -27921,6 +27921,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
Generated
+5
@@ -27881,6 +27881,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -15869,6 +15869,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47365.kt")
|
||||
public void testKt47365() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt47365.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
Reference in New Issue
Block a user