Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 28, 2023
1 parent 4046fdc commit 6243624
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vlib/v/tests/cross_method_call_test.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
fn test_main() {
mut l_map := map[int]bool{}
mut r_map := map[int]bool{}

l_map[0] = false
l_map[1] = false

r_map[0] = true
r_map[1] = true

l_map, r_map = r_map.move(), l_map.move()

assert l_map[0] == true
assert l_map[0] == true
assert r_map[0] == false
assert r_map[0] == false
}

0 comments on commit 6243624

Please sign in to comment.