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 type variable renaming in error messages about method types #4191

Closed
vicuna opened this Issue Dec 21, 2006 · 1 comment

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

commented Dec 21, 2006

Original bug ID: 4191
Reporter: jyh
Status: closed (set by @garrigue on 2006-12-28T05:54:26Z)
Resolution: fixed
Priority: normal
Severity: trivial
Version: 3.09.3
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

The following error message is inconsistent about method "test" having type 'b -> bool, as well as 'a -> bool (incorrect).

This is pretty trivial, but may be worth mentioning.

class ['a] is_x x =

 object (self : 'self)
    method test y = (x = y)
 end;;

Characters 5-87:
..... ['a] is_x x =
object (self : 'self)
method test y = (x = y)
end....
Some type variables are unbound in this type:
class ['a] is_x : 'b -> object method test : 'b -> bool end
The method test has type 'a -> bool where 'a is unbound

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

commented Dec 28, 2006

Comment author: @garrigue

Fixed. Beware of not breaking #3837.

@vicuna vicuna closed this Dec 28, 2006

@vicuna vicuna added the bug label Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.