ref: 488d30c090a2316c851e6d6d25c0c7c7540cb3a4
dir: /test/infer-named.myr/
use std
type u = union
	`Foo
	`Bar int
;;
const f = {v : int -> u
	-> `Bar v
}
const main = {
	var v
	v = f(99)
	match v
	| `Foo:		std.exit(1)
	| `Bar x:	std.exit(x)
	;;
	std.exit(2)
}