v/vlib/v/fmt/tests/conditions_input.vv

11 lines
144 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 }
}