shithub: mc

ref: 04c7c7f5989f7521ca68c8604b5b98b3bd4502bb
dir: /test/slicelen.myr/

View raw version
use std
/* checks that taking incomplete slices calculates the length correctly.
* should exit with 5. */
const main = {
	var a : int[8]
	var s

	s = a[1:6]
	std.exit(s.len)
}