Created
January 16, 2015 22:17
-
-
Save anonymous/2c5d96136685f7b210b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result: | |
before | |
a | |
before | |
b | |
after | |
expected: | |
before | |
a | |
after | |
before | |
b | |
after |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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