shithub: mc

ref: 2a3b64a5642729ab3bf83a21ea6bf59fc2a88f2c
dir: /test/trunccast.myr/

View raw version
use std
/* should truncate y when casting to x, exiting with status 15 */
const main = {
	var x : int8
	var y : int32

	y = 9999
	x = y castto(int8)
	-> x % 73
}