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

Aliased result type of GADT constructor results in assertion failure #6930

Closed
vicuna opened this issue Jul 14, 2015 · 1 comment
Closed

Aliased result type of GADT constructor results in assertion failure #6930

vicuna opened this issue Jul 14, 2015 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Jul 14, 2015

Original bug ID: 6930
Reporter: jmcarthur
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2017-02-16T14:14:56Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Fixed in version: 4.02.3+dev
Category: typing
Monitored by: @gasche

Bug description

Using an alias as the result type of a GADT constructor seems to be crash the compiler as soon as you try to use the constructor. See "steps to reproduce."

Steps to reproduce

Try to compile the following program:

type t = T : (t as 't) -> 't
let f t = T t

Additional information

My example doesn't break if I define the type like this instead:

type t = T : 't -> (t as 't)
@vicuna
Copy link
Author

vicuna commented Jul 15, 2015

Comment author: @garrigue

Fixed in branch 4.02 at revision 16205.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants