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

"unused variable" warning for variable used in inherit #4065

Closed
vicuna opened this issue Jul 19, 2006 · 1 comment
Closed

"unused variable" warning for variable used in inherit #4065

vicuna opened this issue Jul 19, 2006 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jul 19, 2006

Original bug ID: 4065
Reporter: sumii
Status: closed (set by @damiendoligez on 2006-07-19T09:22:59Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 3.09.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #3914

Bug description

cat test.ml
class c x =
object (self)
method m = x + 1
end

class d =
let y = 23 in
object (self)
inherit c y
end

;;

print_int (new d)#m

ocamlc test.ml -o test
File "test.ml", line 7, characters 6-7:
Warning Y: unused variable y.
./test
24>

@vicuna
Copy link
Author

vicuna commented Jul 19, 2006

Comment author: @damiendoligez

fixed in 3.09.1

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

1 participant