Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2015 22:17
Show Gist options
  • Save anonymous/2c5d96136685f7b210b7 to your computer and use it in GitHub Desktop.
Save anonymous/2c5d96136685f7b210b7 to your computer and use it in GitHub Desktop.
result:
before
a
before
b
after
expected:
before
a
after
before
b
after
type t = A | B
let f typ =
print_endline "before";
match typ with
| A -> print_endline "a"
| B -> print_endline "b";
print_endline "after"
let () = f A
let () = f B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment