v/vlib/v/fmt/tests/if_keep.vv

21 lines
256 B
V

fn main() {
sprogress := if b.no_cstep {
'TMP1/${b.nexpected_steps:1d}'
} else {
'${b.cstep:1d}/${b.nexpected_steps:1d}'
}
b := if bar {
// comment
'some str'
} else {
'other str'
}
_ := if true {
Foo{}
} else {
Foo{
x: 5
}
}
}