shithub: mc

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