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

Meaningless error message #3837

Closed
vicuna opened this issue Sep 29, 2002 · 3 comments
Closed

Meaningless error message #3837

vicuna opened this issue Sep 29, 2002 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 29, 2002

Original bug ID: 1412
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Objective Caml version 3.06

class foo = object method get = `Foo end;;

Some type variables are unbound in this type:
class foo : object method get : [> Foo] end The method get has type [> Foo] where .. is unbound


The ellipsis is probably hidden behind the ">" sign. In
which case the error message is a little obscure. If it
means anything else, then it is completely obscure.

Alex

@vicuna
Copy link
Author

vicuna commented Jul 22, 2003

Comment author: administrator

class foo = object method get = `Foo end;;

Some type variables are unbound in this type:
class foo : object method get : [> Foo] end The method get has type [> Foo] where .. is unbound

This was indeed confusing.
The new message is
The method get has type [> `Foo ] as 'a where 'a is unbound
which at least gives an explicit anchor to the problem.

Jacques

@vicuna
Copy link
Author

vicuna commented Jul 22, 2003

Comment author: administrator

Changed message on 2003-07-22 (JG)

@vicuna vicuna closed this as completed Jul 22, 2003
@vicuna
Copy link
Author

vicuna commented Jul 22, 2003

Comment author: administrator

Jacques Garrigue wrote:

class foo = object method get = `Foo end;;

Some type variables are unbound in this type:
class foo : object method get : [> Foo] end The method get has type [> Foo] where .. is unbound

This was indeed confusing.
The new message is
The method get has type [> `Foo ] as 'a where 'a is unbound
which at least gives an explicit anchor to the problem.

Jacques

Definitely better.

I can't wait to get my hands on Ocaml 3.07!

Alex

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