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
Closed
Labels

Comments

@vicuna
Copy link

vicuna 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
Copy link
Author

vicuna commented Dec 28, 2006

Comment author: @garrigue

Fixed. Beware of not breaking #3837.

@vicuna vicuna closed this as completed 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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant