vxx2 / vlib / v / checker / tests / or_err.out
12 lines · 12 sloc · 417 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/or_err.vv:6:2: error: last statement in the `or {}` block should be an expression of type `&int` or exit parent scope
2 4 |
3 5 | a := f() or {
4 6 | {
5 | ^
6 7 | }
7 8 | }
8vlib/v/checker/tests/or_err.vv:10:14: error: wrong return type `rune` in the `or {}` block, expected `&int`
9 8 | }
10 9 | _ = f() or { a }
11 10 | _ = f() or { `.` }
12 | ~~~
13