shithub: mc

ref: 682b8ca1e799b4ae78418b0c94e46b6077b45b5a
dir: /test/gsizeof.myr/

View raw version
use std
/* checks that sizeof works on generics. exits with 5. */
generic sz = {a:@a
	-> sizeof(@a)
}

const main = {
	std.exit(sz(123) + sz("asdf"[0]))
}