| 1 | vlib/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 | |
| 8 | Details: 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 |