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

Bug in typing of the object layer #4505

Closed
vicuna opened this issue Feb 19, 2008 · 1 comment
Closed

Bug in typing of the object layer #4505

vicuna opened this issue Feb 19, 2008 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 19, 2008

Original bug ID: 4505
Reporter: turpin
Status: closed (set by @garrigue on 2008-03-17T02:24:23Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.10.1
Fixed in version: 3.10.3+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @yakobowski

Bug description

The attached code fragment breaks type inference with:

Assert_failure("typing/ctype.ml", 2760, 50).

The behavior is the same with version 3.07 (up to the line number). I don't know how to reduce the code further, but the person who wrote the assertion should know what is going on :-).

File attachments

@vicuna
Copy link
Author

vicuna commented Mar 17, 2008

Comment author: @garrigue

The problem was in the code that tries to create a recursive subtype.
Solved it by disabling recursion when self type appears as a parameter.

@vicuna vicuna closed this as completed Mar 17, 2008
@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