shithub: mc

ref: 49d55e7425056ea5704fffe9f19f76c659079348
dir: /test/matchptr.myr/

View raw version
use std

const main = {
	var x : std.option(std.option(int)#)

	x = `std.Some &(`std.Some 123)
	match x
	| `std.Some &(`std.None):	std.put("failed\n")
	| `std.Some &(`std.Some 666):	std.put("failed\n")
	| `std.Some &(`std.Some 123):	std.put("worked\n")
	| _:	std.put("failed\n")
	;;
}