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

Bad behavior of 'Unused ...' warnings in the toplevel #5787

Closed
vicuna opened this issue Oct 12, 2012 · 1 comment
Closed

Bad behavior of 'Unused ...' warnings in the toplevel #5787

vicuna opened this issue Oct 12, 2012 · 1 comment
Assignees
Milestone

Comments

@vicuna
Copy link

@vicuna vicuna commented Oct 12, 2012

Original bug ID: 5787
Reporter: @alainfrisch
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:19:53Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.01.0+dev
Category: typing
Related to: #6013

Bug description

# let f x = ();;
Warning 27: unused variable x.
val f : 'a -> unit = 
# let f x = ();;
val f : 'a -> unit = 
# let f  x = ();;
Warning 27: unused variable x.
val f : 'a -> unit = 

The warning is not displayed the second time, because it has the same location as the first one.

@vicuna
Copy link
Author

@vicuna vicuna commented Oct 16, 2012

Comment author: @alainfrisch

Fixed by commit 13010, in trunk.

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

Successfully merging a pull request may close this issue.

None yet
2 participants