v2 / vlib / v / checker / tests / or_block_assert_err.out
12 lines · 12 sloc · 587 bytes · 4dce49da4e8f7787b018ade943a61e0f3e012836
Raw
1vlib/v/checker/tests/or_block_assert_err.vv:10:22: error: last statement in the `or {}` block should be an expression of type `int` or exit parent scope
2 8 |
3 9 | f() or { assert true }
4 10 | a := f() or { assert true }
5 | ~~~~~~
6 11 | dump(a)
7 12 | g(f() or { assert true })
8vlib/v/checker/tests/or_block_assert_err.vv:12:19: error: last statement in the `or {}` block should be an expression of type `int` or exit parent scope
9 10 | a := f() or { assert true }
10 11 | dump(a)
11 12 | g(f() or { assert true })
12 | ~~~~~~
13