[FIR] add more tests on annotations for local declarations
^KT-63842
This commit is contained in:
committed by
Space Team
parent
98e12b0d7b
commit
fcb3f003dc
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
annotation class Anno(val position: String)
|
||||
|
||||
fun foo() {
|
||||
class MyClass {
|
||||
val prop = 0
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@Anno(<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>"init $prop"<!>)<!> init {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user