diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 17:26:01 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 17:26:01 -0500 |
| commit | 145a078387b8bce5e8e3c93c333c030aa7455e4c (patch) | |
| tree | 48e113e07888a546bdf9543db2a19587aeef3071 /test/sets.tm | |
| parent | 8dd51a113ead1fe88c80af9165219ca5398715f6 (diff) | |
Make the compiler stricter about not promoting local value variables to
pointers
Diffstat (limited to 'test/sets.tm')
| -rw-r--r-- | test/sets.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sets.tm b/test/sets.tm index a6a9d57b..7b285d60 100644 --- a/test/sets.tm +++ b/test/sets.tm @@ -1,7 +1,7 @@ func main(): - >> t1 := {10, 20, 30, 10} - = {10, 20, 30} + >> t1 := @{10, 20, 30, 10} + = @{10, 20, 30} >> t1:has(10) = yes >> t1:has(-999) @@ -30,10 +30,10 @@ func main(): >> t1:add_all(t2) >> t1 - = {10, 20, 30, 40} + = @{10, 20, 30, 40} >> t1:remove_all(t2) >> t1 - = {10, 20} + = @{10, 20} >> {3, i for i in 5} = {3, 1, 2, 4, 5} |
