aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/or_err.out
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/or_err.out')
-rw-r--r--v_windows/v/vlib/v/checker/tests/or_err.out14
1 files changed, 14 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/or_err.out b/v_windows/v/vlib/v/checker/tests/or_err.out
new file mode 100644
index 0000000..5aaf5f2
--- /dev/null
+++ b/v_windows/v/vlib/v/checker/tests/or_err.out
@@ -0,0 +1,14 @@
+vlib/v/checker/tests/or_err.vv:4:10: error: last statement in the `or {}` block should be an expression of type `&int` or exit parent scope
+ 2 | return none
+ 3 | }
+ 4 | a := f() or {
+ | ~~~~
+ 5 | {}
+ 6 | }
+vlib/v/checker/tests/or_err.vv:11:2: error: wrong return type `rune` in the `or {}` block, expected `&int`
+ 9 | }
+ 10 | _ = f() or {
+ 11 | `.`
+ | ~~~
+ 12 | }
+ 13 |