Created
December 7, 2015 16:08
-
-
Save gsg/01e2941b4089aa25cb1b 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
type _ t = | |
| Bool : bool t | |
| Int : int t | |
let x = object (self) | |
method f : type a . a t -> a t = function | |
| Bool -> Bool | |
| Int -> (self#int Int : int t) | |
method int Int = Int | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment