shithub: mc

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