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

Toplevel runs into Assert_failure("typing/ctype.ml", 266, 23) #5156

Closed
vicuna opened this issue Sep 26, 2010 · 1 comment
Closed

Toplevel runs into Assert_failure("typing/ctype.ml", 266, 23) #5156

vicuna opened this issue Sep 26, 2010 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 26, 2010

Original bug ID: 5156
Reporter: yziquel
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2012-03-24T14:01:44Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.0
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

yziquel@seldon:~$ ocaml -rectypes
Objective Caml version 3.12.0

type 'a obj = ( < .. > as 'a);;

type 'a obj = 'a constraint 'a = < .. >

class ['a] o = object (self : 'a obj) end;;

Fatal error: exception Assert_failure("typing/ctype.ml", 266, 23)
yziquel@seldon:~$

@vicuna
Copy link
Author

vicuna commented Oct 2, 2010

Comment author: @garrigue

There was a long-standing problem with using abbreviations of the form "type 'a t = 'a" for the type of self.
This is now fixed, in revision 10703, branch version/3.12.

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