Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/kt6382.kt
T
2018-06-28 12:26:41 +02:00

19 lines
352 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_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"
}