2f2e608502
It is possible to create object in interpreter even if its receiver symbol came from function parameter instead of object's class. #KT-48174 Fixed
15 lines
285 B
Kotlin
Vendored
15 lines
285 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
annotation class Key(val value: String)
|
|
|
|
object Messanger {
|
|
const val DEFAULT_TEXT = "OK"
|
|
|
|
fun message(@Key(value = DEFAULT_TEXT) text: String = DEFAULT_TEXT): String {
|
|
return text
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Messanger.message()
|
|
}
|