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() { public fun testCoalesce() {
val value: String = when { val value: String = when {
true -> { true -> {
if (true) { if (true) {
"foo" "foo"
} else { } else {
"bar" "bar"
} }
} }
else -> "Hello world" else -> "Hello world"
} }
printlnMock(value.length)
} }
fun box(): String { fun box(): String {