Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/kt1886annotationBody_before.kt
T
Dmitrii Gridin 9a4a3d1f49 [LL FIR] introduce test with reversed resolve order
^KT-56543

Merge-request: KT-MR-9299
Merged-by: Dmitrii Gridin <dmitry.gridin@jetbrains.com>
2023-03-22 17:34:07 +00:00

33 lines
760 B
Kotlin
Vendored

// IGNORE_REVERSED_RESOLVE
// !LANGUAGE: -NestedClassesInAnnotations
annotation class Annotation2() {
<!ANNOTATION_CLASS_MEMBER!>public val s: String = ""<!>
}
annotation class Annotation3() {
<!ANNOTATION_CLASS_MEMBER!>public fun foo() {}<!>
}
annotation class Annotation4() {
<!ANNOTATION_CLASS_MEMBER!>class Foo() {}<!>
}
annotation class Annotation5() {
companion <!ANNOTATION_CLASS_MEMBER!>object<!> {}
}
annotation class Annotation6() {
<!ANNOTATION_CLASS_MEMBER!>init {}<!>
}
annotation class Annotation1() {}
annotation class Annotation7(val name: String) {}
annotation class Annotation8(<!VAR_ANNOTATION_PARAMETER!>var<!> name: String = "") {}
annotation class Annotation9(val name: String)
annotation class Annotation10