shithub: mc

ref: d77ea4e5a34e9a7a54ed1302dcd0d0c9ef13fda9
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;;
	;;
}