Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/propertyTargetOnEnumEntry_warning.kt
T
Nikita Bobko c42d19f0e5 Cover KT-60646 with regression tests
This behavior wasn't intended during KT-15470 coding. I only intended to
prohibit `@get:` target on things different from properties. But I
accidentally prohibited `@property` on things different from properties
too

But it's a bug fix anyway, so let's keep it.

I also re-checked the implementation of KT-15470, I don't see any other
unintentional prohibitions
2023-08-23 12:35:51 +00:00

10 lines
233 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: -ProhibitUseSiteGetTargetAnnotations
@Target(AnnotationTarget.PROPERTY) annotation class Annotation
enum class Foo {
<!INAPPLICABLE_TARGET_ON_PROPERTY_WARNING!>@property:Annotation<!>
Entry
}