heptagon/test/good/const_record.ept

9 lines
145 B
Plaintext
Raw Normal View History

2017-05-23 22:10:39 +02:00
type record = { a : int; b : int }
const a : record = { a = 0; b = 1 }
const b : record^2 = [a, a]
node main() = (o:int)
let
o = (b[0]).a
tel