Fix test - read variable for reproduce KT-3273 fail condition

#KT-3273 Fixed
This commit is contained in:
Nikolay Krasko
2013-01-24 14:12:22 +04:00
parent a0a22b7be6
commit f9ae4f58b8
@@ -1,14 +1,18 @@
fun printlnMock(a: Any) {}
public fun testCoalesce() {
val value: String = when {
true -> {
if (true) {
"foo"
} else {
"bar"
}
}
else -> "Hello world"
val value: String = when {
true -> {
if (true) {
"foo"
} else {
"bar"
}
}
else -> "Hello world"
}
printlnMock(value.length)
}
fun box(): String {