[NoArg] Add test for KT-53122

This commit is contained in:
Dmitriy Novozhilov
2022-07-13 15:23:04 +03:00
parent 782dc55800
commit efc443e7ef
4 changed files with 39 additions and 0 deletions
+21
View File
@@ -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"
}