vxx2 / vlib / v / checker / tests / option_selector_fn_unwrap_err.out
14 lines · 14 sloc · 548 bytes · a200c4540a5bac23f9ef5f308a2e0c079c54e12c
Raw
1vlib/v/checker/tests/option_selector_fn_unwrap_err.vv:7:17: error: to propagate the call, `callback` must return an Option type
2 5 |
3 6 | fn callback(foo &Foo) bool {
4 7 | return foo.func? == callback
5 | ^
6 8 | }
7 9 |
8Details: vlib/v/checker/tests/option_selector_fn_unwrap_err.vv:6:23: details: prepend ? before the declaration of the return type of `callback`
9 4 | }
10 5 |
11 6 | fn callback(foo &Foo) bool {
12 | ~~~~
13 7 | return foo.func? == callback
14 8 | }
15