v/vlib/v/fmt/tests/or_input.vv

10 lines
159 B
V

fn fn_with_or() int {
fn_with_optional() or { return 10 }
return 20
}
fn (f Foo) method_with_or() int {
f.fn_with_optional() or { return 10 }
return 20
}