v/vlib/v/fmt/tests/conditions_expected.vv

13 lines
148 B
V

fn fn_with_if_else() {
if true {
a = 10
a++
} else {
println('false')
}
}
fn fn_with_if_else_oneline() {
x := if true { 1 } else { 2 }
}