v/vlib/v/checker/tests/or_err.vv

14 lines
89 B
V

fn f() ?&int {
return none
}
a := f() or {
{}
}
_ = f() or {
a
}
_ = f() or {
`.`
}