Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/forParameterAnnotationResolve.kt
T
2015-05-07 22:36:16 +03:00

15 lines
285 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 (Ann(3) (x, @Ann(4) y) in bar()) {}
for (<!UNRESOLVED_REFERENCE!>Err<!> (x,y) in bar()) {}
}