You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For module types, the replacements are specified using the standard with construct.
Does that mean, like this?
(* a.ml *)module type T=sigtypet = string;;
end;;
(* b.ml *)module type TT= [%import: (moduleA.Twithtype t =int)];;
moduleT: TT=structtypet = intend;;
I tried that, but it doesn't look like any replacement is happening.
File "b.ml", lines 2-4, characters 15-3:
2 | ...............struct
3 | type t = int
4 | end..
Error: Signature mismatch:
Modules do not match: sig type t = int end is not included in TT
Type declarations do not match:
type t = int
is not included in
type t = string
The type t is not equal to the type string
File "a.ml", line 2, characters 4-19: Expected declaration
File "b.ml", line 3, characters 4-16: Actual declaration
The text was updated successfully, but these errors were encountered:
The documentation says:
Does that mean, like this?
I tried that, but it doesn't look like any replacement is happening.
The text was updated successfully, but these errors were encountered: