3fe114fc24
(cherry picked from commit 29a7bfe)
10 lines
216 B
Plaintext
Vendored
10 lines
216 B
Plaintext
Vendored
// KT-12942: when to if changes semantics
|
|
fun test(b: Boolean): String {
|
|
if (b == true) {
|
|
if (true) return "first"
|
|
} else if (b == false) {
|
|
if (true) return "second"
|
|
}
|
|
|
|
return "none"
|
|
} |