[FIR] Don't miss annotations on inits
^KT-59874
This commit is contained in:
committed by
Space Team
parent
63f461a6cd
commit
5a1a23afac
@@ -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()
|
||||
Reference in New Issue
Block a user