Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/options/forParam.kt
T
2023-11-14 15:19:32 +00:00

11 lines
228 B
Kotlin
Vendored

// FIR_IDENTICAL
// See KT-9145
@Target(AnnotationTarget.CLASS)
annotation class Ann
fun foo() {
for (<!WRONG_ANNOTATION_TARGET!>@Ann<!> <!WRONG_MODIFIER_TARGET!>private<!> x in 1..100) {
if (x == 1) return
}
}