Add test for KT-34902
This commit is contained in:
Generated
+5
@@ -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");
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user