Fix test - read variable for reproduce KT-3273 fail condition
#KT-3273 Fixed
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user