mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
14 lines
320 B
Kotlin
Vendored
14 lines
320 B
Kotlin
Vendored
annotation class Ann(val x: Int)
|
|
|
|
data class A(val x: Int, val y: Int)
|
|
|
|
fun bar(): Array<A> = null!!
|
|
|
|
fun foo() {
|
|
for (@Ann(1) i in 1..100) {}
|
|
for (@Ann(2) i in 1..100) {}
|
|
|
|
for (<!WRONG_ANNOTATION_TARGET!>@Ann(3)<!> (x, @Ann(4) y) in bar()) {}
|
|
|
|
for (<!UNRESOLVED_REFERENCE!>@Err<!>() (x,y) in bar()) {}
|
|
} |