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

Incorrect Warning Y when using inherit with immediate objects #3914

Closed
vicuna opened this issue Dec 11, 2005 · 1 comment
Closed

Incorrect Warning Y when using inherit with immediate objects #3914

vicuna opened this issue Dec 11, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 11, 2005

Original bug ID: 3914
Reporter: Charles Martin
Status: closed (set by @garrigue on 2005-12-15T03:16:01Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.09.0
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #3971 #4065

Bug description

class ship (name : string) =
object
method name = name
end

let make name =
let hms_name = "H.M.S. " ^ name in
object
inherit ship hms_name
end

$ ocamlopt -c test.ml
File "test.ml", line 7, characters 6-14:
Warning Y: unused variable hms_name.

@vicuna
Copy link
Author

vicuna commented Dec 15, 2005

Comment author: @garrigue

Already fixed by Damien Doligez (2005-11-30)

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

No branches or pull requests

1 participant