blob: 6f408044d7014b5d8a11adde597f24edea7f2d15 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class Foo_1 {
def foo() {
// constant optimization should eliminate all branches
val i = 1
val x = if (i != 1) null else "good"
val y = if (x == null) "good" else x + ""
println(y)
}
}
|