shithub: mc

ref: 128470e404d843b3d71c5837cac05d4d4203bd66
dir: /test/zwidencast.myr/

View raw version
use std
/* should zero-extend u when casting to v, returning 99 */
const main = {
	var u : uint8
	var v : uint32
	
	u = 99
	v = u castto(uint32)
	std.exit(v castto(int))
}