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

Classes/variantes/variables non generalizables #3031

Closed
vicuna opened this issue Nov 15, 2001 · 2 comments
Closed

Classes/variantes/variables non generalizables #3031

vicuna opened this issue Nov 15, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 15, 2001

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

Bug description

Full_Name: Didier Remy
Version: 3.03 ALPHA+3 (2001-11-05)
OS: linux
Submission from: oto.inria.fr (192.93.2.2)

The following code crashes both the toplevel and the compiler
with the exception Uncaught exception: Ctype.Unify(_)

class ['a] c =
object (self)
method m1 (a : 'a) = a#m2 (`C self)
end;;

let _ = new c;;

@vicuna
Copy link
Author

vicuna commented Nov 16, 2001

Comment author: administrator

Fixed by JG (2001-11-16).

@vicuna vicuna closed this as completed Nov 16, 2001
@vicuna
Copy link
Author

vicuna commented Nov 16, 2001

Comment author: administrator

Full_Name: Didier Remy
Version: 3.03 ALPHA+3 (2001-11-05)

The following code crashes both the toplevel and the compiler
with the exception Uncaught exception: Ctype.Unify(_)

class ['a] c =
object (self)
method m1 (a : 'a) = a#m2 (`C self)
end;;

let _ = new c;;

Ca a l'air d'un vieux bug, deja dans 3.00.
C'etait du^ a une mauvaise generalisation des variantes dans Ctype.limited_generalize. J'ai corrige', mais limited_generalize me fait assez peur: comme on ne peut pas generaliser une variante sans generaliser sa row-variable, je le fais, au risque d'avoir d'un trou dans le typeur. D'un autre cote', j'ai du mal a imaginer un contre-exemple, si il y
en a...

Jacques

@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