| 1 | vlib/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 }) |
| 8 | vlib/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 | |