shithub: mc

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