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() {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user