shithub: mc

ref: 4b77bda908dec8620abde1e452a1f2bac29f1252
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
}