Files
kotlin-fork/compiler/testData/ir/irText/declarations/kt47527.kt
T
Sergej Jaskiewicz f2031ae642 [IR] Don't print multifile/synthetic facade class names in irText tests
This only applies to JVM and fq-names in declaration references
in IR dumps.

This enables us to run more irText tests on platforms other than JVM
(see KT-58605).
2023-06-05 10:40:17 +00:00

15 lines
316 B
Kotlin
Vendored

// ISSUE: KT-47527
// WITH_STDLIB
fun test_1(value: Any?): String? = value?.let { return "O" }
fun test_2(value: Any?): String? = run {
value?.let { return "K" }
}
fun box(): String {
var result = ""
result += test_1(1) ?: return "fail 1"
result += test_2(1) ?: return "fail 2"
return result
}