Annotation / modifier checking for setter parameters / for variables / multi declarations, tests, relevant test changes #KT-9145 Fixed
This commit is contained in:
+4
-4
@@ -5,10 +5,10 @@ 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(1) i in 1..100) {}
|
||||
for (@Ann(2) i in 1..100) {}
|
||||
|
||||
for (Ann(3) (x, @Ann(4) y) in bar()) {}
|
||||
for (<!WRONG_ANNOTATION_TARGET!>@Ann(3)<!> (x, @Ann(4) y) in bar()) {}
|
||||
|
||||
for (<!UNRESOLVED_REFERENCE!>Err<!> (x,y) in bar()) {}
|
||||
for (<!UNRESOLVED_REFERENCE, WRONG_ANNOTATION_TARGET, DEPRECATED_UNESCAPED_ANNOTATION!>Err<!> (x,y) in bar()) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user