Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotation.kt
T
Dmitrii Gridin 98e12b0d7b [FIR] add missed scope for annotations on property receiver, typealias and init and dangling list
Also, we shouldn't transform type alias during the implicit type phase

^KT-63042
^KT-63832 Fixed
2023-11-29 10:24:02 +00:00

13 lines
213 B
Kotlin
Vendored

// FIR_IDENTICAL
annotation class Anno(val position: String)
class MyClass {
<!WRONG_ANNOTATION_TARGET!>@Anno("init $prop")<!> init {
}
companion object {
private const val prop = 0
}
}