summaryrefslogtreecommitdiff
path: root/test/foldidx.myr
blob: d6916b6f74a7e1aa8b03f66b98c2530538a973c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std

type xy = struct
	x : int
	y : int
;;
const X = 123
const Y = 456
const z : xy[1] = [
	[.x = X, .y = Y]
]

const main = {
	std.put("{},{}\n", z[0].x, z[0].y)
}