summaryrefslogtreecommitdiff
path: root/test/arraylit.myr
blob: 93a90ee2a9386100bde61794231e8c05d8ca1637 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std

/* checks we can make indexed array literals. exits with 3. */
const main = {
	var a = [
		.[0] = 1, 
		.[2] = 3,
		.[1] = 2,
	]
	std.exit(a[2])
}