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: 6104 Reporter: @sliquister Assigned to:@gasche Status: closed (set by @xavierleroy on 2015-12-11T18:21:18Z) Resolution: fixed Priority: normal Severity: minor Version: 4.00.1 Fixed in version: 4.01.0+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
I think the example below is clearer that trying to explain with words. The problem is that the constructor that the compiler complains about doesn't exist.
Steps to reproduce
$ cat a.ml
module Ml : sig end = struct
module A : sig
type t = private Constr
val t : t
end = struct
type t = Constr
let t = Constr
end
include (A : module type of A with type t := A.t)
let A.Constr = t
end
$ ocamlopt -version
4.00.1
$ ocamlopt -w +a a.ml
File "a.ml", line 10, characters 37-50:
Warning 37: constructor Constr is never used to build values.
Its type is exported as a private type.
The text was updated successfully, but these errors were encountered:
Original bug ID: 6104
Reporter: @sliquister
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:21:18Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.00.1
Fixed in version: 4.01.0+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
I think the example below is clearer that trying to explain with words. The problem is that the constructor that the compiler complains about doesn't exist.
Steps to reproduce
$ cat a.ml
module Ml : sig end = struct
module A : sig
type t = private Constr
val t : t
end = struct
type t = Constr
let t = Constr
end
include (A : module type of A with type t := A.t)
let A.Constr = t
end
$ ocamlopt -version
4.00.1
$ ocamlopt -w +a a.ml
File "a.ml", line 10, characters 37-50:
Warning 37: constructor Constr is never used to build values.
Its type is exported as a private type.
The text was updated successfully, but these errors were encountered: