blob: d99bf46fcdd948137af6d5ac5f8f6488c4140540 (
plain) (
tree)
|
|
object Test extends dotty.runtime.LegacyApp {
var cond = true
// should not generate a switch
def f(ch: Char): Int = ch match {
case 'a' if cond => 1
case 'z' | 'a' => 2
}
println(f('a') + f('z')) // 3
}
|