[FIR] Don't miss annotations on for loops variables

^KT-59874
This commit is contained in:
Nikolay Lunyak
2023-10-27 15:00:50 +03:00
committed by Space Team
parent d03039b949
commit 63f461a6cd
5 changed files with 5 additions and 12 deletions
@@ -1,10 +0,0 @@
// See KT-9145
@Target(AnnotationTarget.CLASS)
annotation class Ann
fun foo() {
for (@Ann <!WRONG_MODIFIER_TARGET!>private<!> x in 1..100) {
if (x == 1) return
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// See KT-9145
@Target(AnnotationTarget.CLASS)