aboutsummaryrefslogtreecommitdiffstats
path: root/tests/variables.tdy
blob: 74d8cdd053a28630dab0717df7230808ef0b58f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// a variable
a : int = 1
a <=> 1

// another variable
b : int = 2
b <=> 2

// assignment
a = b
a <=> 2

// ordering
c : int = 3
d : int = 4
c <=> 3
d <=> 4

// No types

e := 1
f := e + 1
e <=> 1
f <=> 2