Files
kotlin/compiler/testData/codegen/box/controlStructures/kt3273.kt
2015-10-14 20:39:35 +03:00

22 lines
345 B
Kotlin
Vendored

fun printlnMock(a: Any) {}
public fun testCoalesce() {
val value: String = when {
true -> {
if (true) {
"foo"
} else {
"bar"
}
}
else -> "Hello world"
}
printlnMock(value.length)
}
fun box(): String {
testCoalesce()
return "OK"
}