diff --git a/vlib/v/checker/or_block_assert_err.out b/vlib/v/checker/or_block_assert_err.out deleted file mode 100644 index 1074f6e07e..0000000000 --- a/vlib/v/checker/or_block_assert_err.out +++ /dev/null @@ -1,12 +0,0 @@ -vlib/v/checker/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 - 8 | - 9 | f() or { assert true } - 10 | a := f() or { assert true } - | ~~~~~~ - 11 | dump(a) - 12 | g(f() or { assert true }) -vlib/v/checker/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 - 10 | a := f() or { assert true } - 11 | dump(a) - 12 | g(f() or { assert true }) - | ~~~~~~ diff --git a/vlib/v/checker/tests/or_block_assert_err.out b/vlib/v/checker/tests/or_block_assert_err.out new file mode 100644 index 0000000000..a1ad0d22b0 --- /dev/null +++ b/vlib/v/checker/tests/or_block_assert_err.out @@ -0,0 +1,12 @@ +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 + 8 | + 9 | f() or { assert true } + 10 | a := f() or { assert true } + | ~~~~~~ + 11 | dump(a) + 12 | g(f() or { assert true }) +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 + 10 | a := f() or { assert true } + 11 | dump(a) + 12 | g(f() or { assert true }) + | ~~~~~~ diff --git a/vlib/v/checker/or_block_assert_err.vv b/vlib/v/checker/tests/or_block_assert_err.vv similarity index 100% rename from vlib/v/checker/or_block_assert_err.vv rename to vlib/v/checker/tests/or_block_assert_err.vv