Files
kotlin-fork/compiler/testData/codegen/box/properties/kt10729.kt
T
2019-11-19 11:00:09 +03:00

21 lines
467 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class IntentionsBundle {
companion object {
fun message(key: String): String {
return key + BUNDLE
}
fun message2(key: String): String {
return { key + BUNDLE }()
}
private const val BUNDLE = "K"
}
}
fun box(): String {
if (IntentionsBundle.message("O") != "OK") return "fail 1: ${IntentionsBundle.message("O")}"
return IntentionsBundle.message2("O")
}