[FIR] Don't miss annotations on inits

^KT-59874
This commit is contained in:
Nikolay Lunyak
2023-10-27 15:21:42 +03:00
committed by Space Team
parent 63f461a6cd
commit 5a1a23afac
17 changed files with 390 additions and 23 deletions
@@ -1,11 +1,11 @@
class A {
@ann init {}
@aaa init {}
<!WRONG_ANNOTATION_TARGET!>@ann<!> init {}
@<!UNRESOLVED_REFERENCE!>aaa<!> init {}
}
interface T {
@ann <!ANONYMOUS_INITIALIZER_IN_INTERFACE!>init<!> {}
@aaa <!ANONYMOUS_INITIALIZER_IN_INTERFACE!>init<!> {}
<!WRONG_ANNOTATION_TARGET!>@ann<!> <!ANONYMOUS_INITIALIZER_IN_INTERFACE!>init<!> {}
@<!UNRESOLVED_REFERENCE!>aaa<!> <!ANONYMOUS_INITIALIZER_IN_INTERFACE!>init<!> {}
}
annotation class ann
@@ -1,6 +0,0 @@
annotation class base
@base class My {
@base init {
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
annotation class base
@base class My {