Created
September 19, 2019 20:42
-
-
Save Pitometsu/1fa440a0461697d8ad0fc6e406a5f765 to your computer and use it in GitHub Desktop.
Can module-level have Upper Type Bounds
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
utop# | |
module type T = sig | |
type t = .. | |
end;; | |
module type T = sig type t = .. end | |
utop # | |
module type M = sig | |
module type A | |
module type M = sig | |
include A | |
include T | |
end | |
module M : M | |
end;; | |
Error: This module type is not a signature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment