shithub: mc

ref: 797b4ce60e118ccc6b0b38b2d46b6c3acbe50778
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]
	-> s.len
}