summaryrefslogtreecommitdiff
path: root/test/arraylit.myr
blob: e37e77260f2af5306fb14b6fce43f0751ddf81f7 (plain)
1
2
3
4
5
6
7
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])
}