Last active
March 25, 2019 07:40
-
-
Save Pitometsu/58deea76125ecd2ddbc5fbf4aee6aca6 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 M = struct type t end | |
module A = struct include (M : module type of struct include M end with type t = [`A]) end | |
(* | |
Error: In this `with' constraint, the new definition of t | |
does not match its original definition in the constrained signature: | |
Type declarations do not match: | |
type t = [ `A ] | |
is not included in | |
type t = M.t | |
*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment