Skip to content

Warning 44 minor inconsistency #6428

@vicuna

Description

@vicuna

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions