Files
Nikolay Lunyak 5a1a23afac [FIR] Don't miss annotations on inits
^KT-59874
2023-11-14 15:19:33 +00:00

17 lines
363 B
Kotlin
Vendored

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()