Created
August 24, 2020 18:34
-
-
Save Nymphium/935e747d08067e9958c0c097285fa70d 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 type S = sig val x: int end | |
let module M = struct let x = 3 end in | |
Obj.magic (module M : S) |> fun m -> let module M = (val m : S) in M.x (* 3 *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment