mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
Add variable constraints, rename type annotation checks to constraints, rename custom type to annotation
This commit is contained in:
parent
92a496e584
commit
3e658e4780
16 changed files with 237 additions and 118 deletions
11
test/tests/constrained variable assignement.ans
Normal file
11
test/tests/constrained variable assignement.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
:weigh::"kg" = 5::"kg"
|
||||
|
||||
{weigh}
|
||||
|
||||
~ weigh := 12::"kg"
|
||||
|
||||
{weigh}
|
||||
|
||||
~ weigh := 32
|
||||
|
||||
{weigh}
|
||||
Loading…
Add table
Add a link
Reference in a new issue