[NoArg] Add test for KT-53122
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// ISSUE: KT-53122
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// MODULE: annotations
|
||||
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class NoArg
|
||||
|
||||
// MODULE: a(annotations)
|
||||
|
||||
@NoArg
|
||||
abstract class Base(val x: Int)
|
||||
|
||||
// MODULE: b(a, annotations)
|
||||
|
||||
@NoArg
|
||||
abstract class Derived(x: Int) : Base(x)
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
Generated
+6
@@ -55,6 +55,12 @@ public class BlackBoxCodegenTestForNoArgGenerated extends AbstractBlackBoxCodege
|
||||
runTest("plugins/noarg/testData/box/kt18668.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53122.kt")
|
||||
public void testKt53122() throws Exception {
|
||||
runTest("plugins/noarg/testData/box/kt53122.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInInitiailzer.kt")
|
||||
public void testLocalClassInInitiailzer() throws Exception {
|
||||
|
||||
Generated
+6
@@ -55,6 +55,12 @@ public class FirBlackBoxCodegenTestForNoArgGenerated extends AbstractFirBlackBox
|
||||
runTest("plugins/noarg/testData/box/kt18668.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53122.kt")
|
||||
public void testKt53122() throws Exception {
|
||||
runTest("plugins/noarg/testData/box/kt53122.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInInitiailzer.kt")
|
||||
public void testLocalClassInInitiailzer() throws Exception {
|
||||
|
||||
Generated
+6
@@ -55,6 +55,12 @@ public class IrBlackBoxCodegenTestForNoArgGenerated extends AbstractIrBlackBoxCo
|
||||
runTest("plugins/noarg/testData/box/kt18668.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53122.kt")
|
||||
public void testKt53122() throws Exception {
|
||||
runTest("plugins/noarg/testData/box/kt53122.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassInInitiailzer.kt")
|
||||
public void testLocalClassInInitiailzer() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user