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

Multiple methods with the same name in the same object do not give a warning #4026

Closed
vicuna opened this issue May 19, 2006 · 1 comment
Closed
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented May 19, 2006

Original bug ID: 4026
Reporter: berke
Assigned to: @garrigue
Status: closed (set by @garrigue on 2006-06-12T07:30:17Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.09.1
Category: ~DO NOT USE (was: OCaml general)

Bug description

It seems that the following situation should give a warning:

let x = object method alpha = 1 method alpha = 2 end;;

val x : < alpha : int > =

Berke

@vicuna
Copy link
Author

vicuna commented Jun 12, 2006

Comment author: @garrigue

Actually, I have always wondered what the overriden method warning was about.
Following your comment, I modified it in the 3.10 branch:

  • warn when a method we just defined is overriden
  • do not warn when overriding an inherited method

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

2 participants