shithub: mc

ref: fc1425f6388e112984cce1bf64910be2a656367a
dir: /test/genericmatch.myr/

View raw version
use std

type t(@a) = union
	`Foo @a
	`Bar
;;

const main = {
	match `Foo 123
	| `Foo a:	-> 0xf
	| `Bar:		-> 0x0
	;;
}