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

duplicate method warning? #8477

Closed
vicuna opened this issue Feb 5, 2004 · 1 comment
Closed

duplicate method warning? #8477

vicuna opened this issue Feb 5, 2004 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Feb 5, 2004

Original bug ID: 2173
Reporter: administrator
Status: closed (set by @gasche on 2013-07-27T05:54:41Z)
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: henri dubois-ferriere
Version: 3.07+2
OS: debian
Submission from: lcavpc14.epfl.ch (128.178.8.51)

class a = object method a = 1 method a = 2 end

shouldn't this give a warning?

@vicuna
Copy link
Author

vicuna commented Jul 27, 2013

Comment author: @gasche

I believe this have been a warning since 3.12 (one would need to use "method! a = ..." on the second definition to mark it as an override), and this is an error in trunk (will be in 4.01), as it doesn't make sense to override a method in the exact same object definition (#6035).

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