shithub: mc

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