Fix FirAnnotationArgumentChecker (String + ... case) #KT-44995 Fixed
This commit is contained in:
Vendored
+15
@@ -17,3 +17,18 @@ FILE: nonConstValInAnnotationArgument.kt
|
||||
public get(): R|kotlin/Int|
|
||||
@R|Ann|(<implicitArrayOf>(R|/foo|, R|/foo|.R|kotlin/String.plus|(R|/cnst|.R|kotlin/Any.toString|()))) public final fun test(): R|kotlin/Unit| {
|
||||
}
|
||||
public final const val A: R|kotlin/String| = String(foo)
|
||||
public get(): R|kotlin/String|
|
||||
public final const val B: R|kotlin/Int| = Int(100)
|
||||
public get(): R|kotlin/Int|
|
||||
public final annotation class S : R|kotlin/Annotation| {
|
||||
public constructor(s: R|kotlin/String|): R|S| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final val s: R|kotlin/String| = R|<local>/s|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
@R|S|(R|/A|.R|kotlin/String.plus|(R|/B|)) public final fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
Vendored
+8
@@ -11,3 +11,11 @@ const val cnst = 2
|
||||
)<!>
|
||||
)
|
||||
fun test() {}
|
||||
|
||||
const val A = "foo"
|
||||
const val B = 100
|
||||
|
||||
annotation class S(val s: String)
|
||||
|
||||
@S(A + B)
|
||||
fun foo() {}
|
||||
Reference in New Issue
Block a user