shithub: mc

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