shithub: mc

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