Created
February 23, 2021 13:40
-
-
Save stedolan/7c3141f5171dd34f59895a602337a453 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 = Foo;; | |
type t = Foo | |
# type r = { foo : t };; | |
type r = { foo : t; } | |
# let x : r = { foo = Foo } ;; | |
val x : r = {foo = Foo} | |
# type s = t = private Foo;; | |
type s = t = private Foo | |
# let x : r = { foo = Foo } ;; | |
Error: Cannot create values of the private type s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment