Created
April 5, 2021 19:07
-
-
Save EduardoRFS/de96838cefe9115d12ec740b78e8506b to your computer and use it in GitHub Desktop.
This file contains 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
module X = struct | |
type record = { field: int } | |
let value = { field = 1 } | |
end | |
(* this works *) | |
let field = | |
match X.value with | |
| {field; _} -> field | |
(* this fails *) | |
let { field; _ } = X.value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment