aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv15
1 files changed, 15 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv b/v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv
new file mode 100644
index 0000000..0b64d51
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv
@@ -0,0 +1,15 @@
+struct St {
+mut:
+ a int
+}
+
+fn (mut a St) change() {
+ a.a++
+}
+
+fn main() {
+ mut x := St{
+ a: 0
+ }
+ go x.change()
+}