Add test for KT-34902

This commit is contained in:
Dmitry Petrov
2020-05-26 00:38:13 +03:00
parent 4455532210
commit 2f79b4c412
7 changed files with 51 additions and 0 deletions
@@ -12928,6 +12928,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt");
}
@TestMetadata("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt");
}
@TestMetadata("kt37998.kt")
public void testKt37998() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt");
+21
View File
@@ -0,0 +1,21 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
interface OneofField<T> {
val value: T
val number: Int
val name: String
data class OneofUint32 constructor(
override val value: UInt,
override val number: Int = 111,
override val name: String = "oneof_uint32"
) : OneofField<UInt>
}
fun box(): String {
val d = OneofField.OneofUint32(0u)
val s = d.toString()
if (s != "OneofUint32(value=0, number=111, name=oneof_uint32)") return s
return "OK"
}
@@ -14143,6 +14143,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt");
}
@TestMetadata("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt");
}
@TestMetadata("kt37998.kt")
public void testKt37998() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt");
@@ -14148,6 +14148,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt");
}
@TestMetadata("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt");
}
@TestMetadata("kt37998.kt")
public void testKt37998() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt");
@@ -12928,6 +12928,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt");
}
@TestMetadata("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt");
}
@TestMetadata("kt37998.kt")
public void testKt37998() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt");
@@ -11138,6 +11138,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt");
}
@TestMetadata("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt");
}
@TestMetadata("kt37998.kt")
public void testKt37998() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt");
@@ -11203,6 +11203,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt");
}
@TestMetadata("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt");
}
@TestMetadata("kt37998.kt")
public void testKt37998() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt");