shithub: mc

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