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
Original bug ID: 4829 Reporter: Etienne Millon Status: acknowledged (set by @xavierleroy on 2012-08-06T16:25:28Z) Resolution: open Priority: normal Severity: feature Version: 3.11.1+rc1 Target version: undecided Category: typing Tags: recmod Monitored by: "Etienne Millon" @jberdine
Bug description
Here is a piece of code with recursive modules that does not type :
module type BSig=sigtypetvalf: t -> unitendmodule type ASig=functor(B: BSig) ->
sigtypetvalg: B.t -> unitendmoduleMake(C: BSig) =structtypet = intletg_=()endmoduleMakeA= (Make: ASig)
modulerecA:
sigtypetvalg: B.t -> unitend=MakeA(B)
andB:
sigtypet = int*A.tvalf: t -> unitend=structtypet = int*A.tletfx=A.g x (* does not type *)(* let f (a, b) = A.g (a, b) (* types correctly *)*)end
Note that if function f is replaced by the commented version, then the type
checker succeeds. Even though, this code modification is only giving the
additional information that the argument of f is a pair.
Additional information
This code used to compile with Ocaml 3.10.0 but does not with 3.10.2 and 3.11.1
The text was updated successfully, but these errors were encountered:
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 4829
Reporter: Etienne Millon
Status: acknowledged (set by @xavierleroy on 2012-08-06T16:25:28Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.11.1+rc1
Target version: undecided
Category: typing
Tags: recmod
Monitored by: "Etienne Millon" @jberdine
Bug description
Here is a piece of code with recursive modules that does not type :
Note that if function f is replaced by the commented version, then the type
checker succeeds. Even though, this code modification is only giving the
additional information that the argument of f is a pair.
Additional information
This code used to compile with Ocaml 3.10.0 but does not with 3.10.2 and 3.11.1
The text was updated successfully, but these errors were encountered: