summaryrefslogtreecommitdiff
path: root/test/slice.myr
blob: ce4216611ed2a14b0c55323738f0b257e990b358 (plain)
1
2
3
4
5
6
7
8
9
10
const main = {
	var a : int[3]
	var s

	s = a[0,3]
	s[0] = 3
	s[1] = 4
	s[2] = s[0] + s[1]
	-> s[2]
}