summaryrefslogtreecommitdiff
path: root/test/foldidx.myr
blob: 60489fa4a471a28524c365fe0b5b372aff44869e (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("%i,%i\n", z[0].x, z[0].y)
}