v/vlib/v/checker/tests/fn_return_or_err.out

8 lines
269 B
Plaintext

vlib/v/checker/tests/fn_return_or_err.vv:6:17: error: unexpected `or` block, the function `pop` does not return an optional
4 |
5 | pub fn next(mut v []Typ) Typ {
6 | return v.pop() or { Typ{} }
| ~~~~~~~~~~~~
7 | }
8 |