Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type t = { a : int; b : int }
- let () =
- let value = { a = 1; b = 2} in
- (* This works *)
- let x = match value with | { a; _ } -> a in print_int x
- (* Changing the above to this fails: *)
- (* let x = match value with | { _; b } -> b in print_int x *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement