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: 5747 Reporter: @sliquister Assigned to:@alainfrisch Status: closed (set by @xavierleroy on 2015-12-11T18:08:01Z) Resolution: fixed Priority: normal Severity: minor Version: 4.00.0 Fixed in version: 4.01.0+dev Category: ~DO NOT USE (was: OCaml general) Monitored by:@hcarty
Bug description
The program in the following section should trigger the 'unused open' warning, but the warning is triggering only when the -annot flag is absent.
Steps to reproduce
/tmp$ ocamlopt -version
4.00.0
/tmp$ cat a.ml
module Result = struct
let x = 2
end
module Infix = Result
open Infix
include Result
let _ = x
/tmp$ ocamlopt -w +A -annot a.ml
/tmp$ ocamlopt -w +A a.ml
File "a.ml", line 6, characters 0-10:
Warning 33: unused open Infix.
Additional information
This bug is already present in 4.00+rc1, and I did not check any other version.
The -bin-annot flag does not trigger this problem.
The text was updated successfully, but these errors were encountered:
Original bug ID: 5747
Reporter: @sliquister
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:08:01Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.00.0
Fixed in version: 4.01.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty
Bug description
The program in the following section should trigger the 'unused open' warning, but the warning is triggering only when the -annot flag is absent.
Steps to reproduce
/tmp$ ocamlopt -version
4.00.0
/tmp$ cat a.ml
module Result = struct
let x = 2
end
module Infix = Result
open Infix
include Result
let _ = x
/tmp$ ocamlopt -w +A -annot a.ml
/tmp$ ocamlopt -w +A a.ml
File "a.ml", line 6, characters 0-10:
Warning 33: unused open Infix.
Additional information
This bug is already present in 4.00+rc1, and I did not check any other version.
The -bin-annot flag does not trigger this problem.
The text was updated successfully, but these errors were encountered: