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

const sl = array[1:3]
const array = [1,2,3,4,5]

const main = {
	/* expected output 23 */
	for x in sl
		std.put("%i", x)
	;;
	std.put("\n")
}