FIR: report WRONG_ANNOTATION_TARGET(_WITH_USE_SITE_TARGET) on declarations
This commit is contained in:
+1
-1
@@ -2,6 +2,6 @@
|
||||
annotation class My
|
||||
data class Pair(val a: Int, val b: Int)
|
||||
fun foo(): Int {
|
||||
val (@My private a, @My public b) = Pair(12, 34)
|
||||
val (<!WRONG_ANNOTATION_TARGET!>@My<!> private a, <!WRONG_ANNOTATION_TARGET!>@My<!> public b) = Pair(12, 34)
|
||||
return a + b
|
||||
}
|
||||
Reference in New Issue
Block a user