diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-13 14:46:10 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-13 14:46:10 +0100 |
| commit | 92f18d8f4278a6e6322c4162f78494762ba7cbb6 (patch) | |
| tree | deb3bda67411b7d968e729165ee05a49fad55202 /tests/variables.tdy | |
| parent | 5492b85a79807dab301ab5f040504bf2538ffaf7 (diff) | |
| download | sylt-92f18d8f4278a6e6322c4162f78494762ba7cbb6.tar.gz | |
Change the assignment syntax
Diffstat (limited to 'tests/variables.tdy')
| -rw-r--r-- | tests/variables.tdy | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/variables.tdy b/tests/variables.tdy index 62b30d2..74d8cdd 100644 --- a/tests/variables.tdy +++ b/tests/variables.tdy @@ -1,9 +1,9 @@ // a variable -a int := 1 +a : int = 1 a <=> 1 // another variable -b int := 2 +b : int = 2 b <=> 2 // assignment @@ -11,7 +11,14 @@ a = b a <=> 2 // ordering -c int := 3 -d int := 4 +c : int = 3 +d : int = 4 c <=> 3 d <=> 4 + +// No types + +e := 1 +f := e + 1 +e <=> 1 +f <=> 2 |
