shithub: mc

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