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,3 +1,5 @@
fun printlnMock(a: Any) {}
public fun testCoalesce() { public fun testCoalesce() {
val value: String = when { val value: String = when {
true -> { true -> {
@@ -9,6 +11,8 @@ public fun testCoalesce() {
} }
else -> "Hello world" else -> "Hello world"
} }
printlnMock(value.length)
} }
fun box(): String { fun box(): String {