mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
Cache read values in local state, handle mutable variables properly
This commit is contained in:
parent
607313d5ce
commit
0f89307d5f
9 changed files with 258 additions and 7 deletions
26
test/tests/checkpoint merging mutable value.ans
Normal file
26
test/tests/checkpoint merging mutable value.ans
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
:post run = "after error"
|
||||
|
||||
:l = [1,2]
|
||||
|
||||
1,2: {l}
|
||||
|
||||
~ l.insert(3)
|
||||
|
||||
1,2,3: {l}
|
||||
|
||||
§ a
|
||||
|
||||
~ l.insert(4)
|
||||
|
||||
1,2,3,4: {l}
|
||||
|
||||
§ b
|
||||
|
||||
~ l.insert(5)
|
||||
|
||||
1,2,3,4,5: {l}
|
||||
|
||||
~ error("cancel merge")
|
||||
|
||||
$ after error
|
||||
1,2,3,4: {l}
|
||||
Loading…
Add table
Add a link
Reference in a new issue