[FIR] add more tests on annotations for local declarations

^KT-63842
This commit is contained in:
Dmitrii Gridin
2023-11-27 18:49:24 +01:00
committed by Space Team
parent 98e12b0d7b
commit fcb3f003dc
53 changed files with 4021 additions and 0 deletions
@@ -0,0 +1,11 @@
@Target(AnnotationTarget.TYPE, AnnotationTarget.TYPEALIAS, AnnotationTarget.TYPE_PARAMETER)
annotation class Anno(val position: String)
fun foo() {
class OriginalClass<T> {
val prop = 0
<!TOPLEVEL_TYPEALIASES_ONLY!>@Anno("alias $<!UNRESOLVED_REFERENCE!>prop<!>")
typealias NestedTypeAlias <@Anno("type param $<!UNRESOLVED_REFERENCE!>prop<!>") A : <!BOUND_ON_TYPE_ALIAS_PARAMETER_NOT_ALLOWED!>@Anno("bound $<!UNRESOLVED_REFERENCE!>prop<!>") Number<!>> = @Anno("type $<!UNRESOLVED_REFERENCE!>prop<!>") OriginalClass<A><!>
}
}