JVM_IR: add test for serialization of raw types
This commit is contained in:
committed by
TeamCityServer
parent
3b8cb4b00d
commit
1d913a6bf0
+6
@@ -4109,6 +4109,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
|||||||
public void testIndices() throws Exception {
|
public void testIndices() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("rawType.kt")
|
||||||
|
public void testRawType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// WITH_RUNTIME
|
||||||
|
// FILE: UseRawType.java
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class UseRawType {
|
||||||
|
static public List useList(List arg) {
|
||||||
|
return arg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: use.kt
|
||||||
|
inline fun callRawType() = UseRawType.useList(listOf("OK")) as List<String>
|
||||||
|
|
||||||
|
// FILE: box.kt
|
||||||
|
fun box() = callRawType()[0]
|
||||||
+6
@@ -4109,6 +4109,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
|||||||
public void testIndices() throws Exception {
|
public void testIndices() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("rawType.kt")
|
||||||
|
public void testRawType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -4109,6 +4109,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
|||||||
public void testIndices() throws Exception {
|
public void testIndices() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("rawType.kt")
|
||||||
|
public void testRawType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -4109,6 +4109,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
|||||||
public void testIndices() throws Exception {
|
public void testIndices() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("rawType.kt")
|
||||||
|
public void testRawType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -4109,6 +4109,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
|||||||
public void testIndices() throws Exception {
|
public void testIndices() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("rawType.kt")
|
||||||
|
public void testRawType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
Reference in New Issue
Block a user