Files
kotlin-fork/plugins/allopen/testData/diagnostics/allOpenOnAnnotation.fir.kt
T
Brian Norman bdaacb9427 [AllOpen] Test case to recreate open annotation member warning
The AllOpen compiler plugin opens all declarations of the annotated
class, regardless of class type. However, it only opens classes (not
interfaces, objects, enums, etc). This leads to a warning where members
of an annotation are open when annotated. Spring has many such
annotations, as it is common to create meta-annotations from the core
set of AllOpen supported annotations.

^KT-63507
2024-03-08 14:55:39 +00:00

10 lines
163 B
Kotlin
Vendored

// WITH_STDLIB
// ISSUE: KT-63507
annotation class AllOpen
@AllOpen
annotation class SubComponent(
val <!NON_FINAL_MEMBER_IN_FINAL_CLASS!>scope<!>: String
)