ref: 10c5c3d7f4a76b67a72278b989d4b0cb52e145b3
dir: /test/matchstruct.myr/
use std
type t = struct
v1 : int
v2 : int
v3 : int
;;
const main = {
var v : t
v.v1 = 2
v.v2 = 40
v.v3 = 10
match v
| [.v1 = x, .v2 = y, .v3 = 10]:
std.exit(x + y)
| _:
std.die("Wat")
;;
std.exit(0)
}