shithub: mc

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