aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/record_construction.elna
blob: 31fc21f77052489cf46c4638651559c853e4ea37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
type
  R = record
    x, y: Int
  end

var
  r: R := R{x: 1, y: 2}

program()
begin
  assert(r.x = 1 & r.y = 2)
end.