aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/void_fn_as_value.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/void_fn_as_value.vv')
-rw-r--r--v_windows/v/vlib/v/checker/tests/void_fn_as_value.vv9
1 files changed, 9 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/void_fn_as_value.vv b/v_windows/v/vlib/v/checker/tests/void_fn_as_value.vv
new file mode 100644
index 0000000..012019e
--- /dev/null
+++ b/v_windows/v/vlib/v/checker/tests/void_fn_as_value.vv
@@ -0,0 +1,9 @@
+module main
+
+fn main() {
+ mut a := 'aa'
+ a += x('a','b')
+ mut b := 'abcdef'
+ _ = b
+ _ = a
+}