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