[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
@@ -0,0 +1,17 @@
package low
@Target(AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
annotation class Anno(val position: String)
const val constant = 0
class MyClass {
@Anno("init annotation: $constant") i<caret>nit {
@Anno("annotation inside")
funInsideInit()
}
}
fun anotherFun(): String = "str"
fun funInsideInit() = anotherFun()