shithub: mc

ref: 0bb2378d7e2b714998b34394f6977b2ead023d6c
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]))
}