[FIR2IR] Properly generate arguments for annotation constructors calls in default values of annotation constructors
This commit is contained in:
committed by
teamcity
parent
18fc2802e5
commit
4022918ea2
+13
@@ -0,0 +1,13 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
annotation class MyReplaceWith(val x: String, vararg val y: String)
|
||||
|
||||
annotation class MyDeprecated(
|
||||
val replaceWith: MyReplaceWith = MyReplaceWith(""),
|
||||
)
|
||||
|
||||
fun getInt(x: String, vararg y: String): Int = 1
|
||||
|
||||
fun test(x: Int = getInt("")) {}
|
||||
|
||||
fun box() = "OK"
|
||||
Reference in New Issue
Block a user