18 lines
331 B
Kotlin
Vendored
18 lines
331 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
return if (A().run() == "Aabc") "OK" else "fail"
|
|
}
|
|
|
|
public class A {
|
|
fun run() =
|
|
with ("abc") {
|
|
show()
|
|
}
|
|
|
|
private fun String.show(p: Boolean = false): String = getName() + this
|
|
|
|
private fun getName() = "A"
|
|
}
|