[FIR2IR] Properly generate arguments for annotation constructors calls in default values of annotation constructors

This commit is contained in:
Dmitriy Novozhilov
2022-02-23 20:18:47 +03:00
committed by teamcity
parent 18fc2802e5
commit 4022918ea2
4 changed files with 30 additions and 3 deletions
@@ -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"