shithub: mc

ref: 9543bdfe516ddde6d347bffed6a99c9ec5c0c40b
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]))
}