Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/options/multiDeclaration.fir.kt
T

7 lines
240 B
Kotlin
Vendored

@Target(AnnotationTarget.CLASS)
annotation class My
data class Pair(val a: Int, val b: Int)
fun foo(): Int {
val (<!WRONG_ANNOTATION_TARGET!>@My<!> private a, <!WRONG_ANNOTATION_TARGET!>@My<!> public b) = Pair(12, 34)
return a + b
}