b454fcc1e0
This is needed to avoid clashes between different dumps from different handlers
40 lines
592 B
Plaintext
Vendored
40 lines
592 B
Plaintext
Vendored
fun test(i: Int): Int {
|
|
return when {
|
|
greater(arg0 = i, arg1 = 0) -> 1
|
|
less(arg0 = i, arg1 = 0) -> -1
|
|
else -> 0
|
|
}
|
|
}
|
|
|
|
fun testEmptyBranches1(flag: Boolean) {
|
|
when {
|
|
flag -> { // BLOCK
|
|
}
|
|
else -> true /*~> Unit */
|
|
}
|
|
when {
|
|
flag -> true /*~> Unit */
|
|
}
|
|
}
|
|
|
|
fun testEmptyBranches2(flag: Boolean) {
|
|
when {
|
|
flag -> { // BLOCK
|
|
}
|
|
else -> true /*~> Unit */
|
|
}
|
|
when {
|
|
flag -> true /*~> Unit */
|
|
else -> { // BLOCK
|
|
}
|
|
}
|
|
}
|
|
|
|
fun testEmptyBranches3(flag: Boolean) {
|
|
when {
|
|
flag -> { // BLOCK
|
|
}
|
|
else -> true /*~> Unit */
|
|
}
|
|
}
|