ref: 10639872d6c832f4215fca9f5d33a90b59d8021f
dir: /test/constslice.myr/
use std
const slpart = array[1:3]
const slfull = array[:]
const slinline = [6,7,8][:]
const array = [1,2,3,4,5]
const main = {
/* expected output 23 */
for x in slpart
std.put("{}", x)
;;
/* expected output 12345 */
for x in slfull
std.put("{}", x)
;;
/* expected output 678 */
for x in slinline
std.put("{}", x)
;;
std.put("\n")
}