Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning 44 minor inconsistency #6428

Closed
vicuna opened this issue May 16, 2014 · 1 comment
Closed

Warning 44 minor inconsistency #6428

vicuna opened this issue May 16, 2014 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented May 16, 2014

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.

@vicuna
Copy link
Author

vicuna commented May 16, 2014

Comment author: @gasche

We've been discussing this in #5980.
#5980#c11347

We agree that "shadowing" an identifier with itself (or an equal one) should not raise a warning. The implementation work remains to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants