Files
kotlin-fork/compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt
T
Kirill Rakhman feed740415 [FIR2IR] Don't copy default value to annotation call with vararg parameter
This aligns the behavior with K1 and fixes an issue when the default
value was deserialized as FirExpressionStub leading to an exception
in FIR2IR when trying to convert it to an IR expression.

#KT-60120 Fixed
#KT-59610 Fixed
2023-07-17 11:42:39 +00:00

13 lines
167 B
Kotlin
Vendored

// MODULE: lib1
// FILE: lib1.kt
annotation class MyConfig(
vararg val profiles: String = [],
)
// MODULE: box(lib1)
// FILE: box.kt
@MyConfig
fun box() = "OK"