aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/optional_in_println_mismatch.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/optional_in_println_mismatch.vv')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/optional_in_println_mismatch.vv7
1 files changed, 7 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/optional_in_println_mismatch.vv b/v_windows/v/old/vlib/v/checker/tests/optional_in_println_mismatch.vv
new file mode 100644
index 0000000..fd3d067
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/optional_in_println_mismatch.vv
@@ -0,0 +1,7 @@
+fn funcy() ?int {
+ return none
+}
+
+fn main() {
+ println(funcy() or { '' })
+}