-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Warning 44 minor inconsistency #6428
Copy link
Copy link
Closed
Description
Original bug ID: 6428
Reporter: Dmitry Grebeniuk
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:27:03Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 4.01.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #5980
Bug description
$ ocaml -w A
OCaml version 4.01.0
module A = struct let x = 1 end;;
module A : sig val x : int end
let x = A.(x);;
val x : int = 1
let (x, y) = A.(x, 5);;
Warning 44: this open statement shadows the value identifier x (which is later used)
val x : int = 1
val y : int = 5
I expect second binding to not give warning, because there is no shadowing.
Reactions are currently unavailable