mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
[language] replace constant symbols with a constant value check function
This commit is contained in:
parent
b534a3c4a2
commit
aaff625b6c
15 changed files with 31 additions and 37 deletions
|
|
@ -1,7 +1,7 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
[0m[31m[0m[31mtrying to change the value of constant a[0m
|
||||
[0m[31m[0m[31mcan not set a = 52; constant value check failed[0m
|
||||
↳ from [4mtest/tests/constant variable.ans:5:3[0m in call: [2ma = 52[0m[0m
|
||||
↳ from [4mtest/tests/constant variable.ans:1:1[0m in block: [2m::a = 3…[0m
|
||||
↳ from [4mtest/tests/constant variable.ans:1:1[0m in block: [2m:a::constant = 3…[0m
|
||||
--# saved #--
|
||||
{}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
--- text ---
|
||||
| {}"" {}"type(12, \"kg\")" {}"" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31mvalue check failure for weigh; 32 does not satisfy $(x) type(x) == t[0m
|
||||
[0m[31m[0m[31mcan not set weigh = 32; $(x) type(x) == t value check failed[0m
|
||||
↳ from [4mtest/tests/constrained variable assignement.ans:9:7[0m in call: [2mweigh = 32[0m[0m
|
||||
↳ from [4mtest/tests/constrained variable assignement.ans:1:1[0m in block: [2m:weigh::is("kg") = type(5, "kg")…[0m
|
||||
--# saved #--
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
--- text ---
|
||||
| {}"d=" {}"2" {}" (2)" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31mtrying to change the value of constant d[0m
|
||||
[0m[31m[0m[31mcan not set d = 5; constant value check failed[0m
|
||||
↳ from [4mtest/tests/symbol alias constant.ans:12:3[0m in call: [2md = 5[0m[0m
|
||||
↳ from [4mtest/tests/symbol alias constant.ans:1:1[0m in block: [2m:l = *[1, 2, 3]…[0m
|
||||
--# saved #--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue