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

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

program()
begin
  assert(r.x = 1 & r.y = 2)
return 0u8

end.