[FIR] add more tests for implicit type phase
These tests demonstrate the implicit type phase problem - annotations are also resolved, although they should not ^KT-56551
This commit is contained in:
committed by
Space Team
parent
d4bc5dc717
commit
889c210576
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
package myPack
|
||||
|
||||
annotation class Anno(val number: String)
|
||||
|
||||
fun topLevelFun() {
|
||||
class LocalClass {
|
||||
@Anno(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>variableToResolve<!>)
|
||||
@field:Anno(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>variableToResolve<!>)
|
||||
var variableToResolve = "${42}"
|
||||
@Anno(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>variableToResolve<!>)
|
||||
get() = field + "str"
|
||||
@Anno(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>variableToResolve<!>)
|
||||
set(@Anno(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>variableToResolve<!>) value) = Unit
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user