aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/tiger/values-and-expressions.tig
blob: 5131c304108fb9202e0b9fa90960f50846dda5e2 (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
25
26
27
28
29
30
let
  type array_of_int = array of int

  type record = {
    a: int,
    b: string,
    c: type
  }

  var a :=
    "a string"
in
  array[
    12
  ]
  ;

  array_of_int[
    27
  ]
  of
    42
  ;

  record {
    a = 1,
    b = "2",
    c = nil
  }
end