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

Comments

Projects
None yet
2 participants
@vicuna
Copy link

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

This comment has been minimized.

Copy link
Author

commented Jul 15, 2015

Comment author: @garrigue

Fixed in branch 4.02 at revision 16205.

@vicuna vicuna closed this Feb 16, 2017

@vicuna vicuna added the typing label Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.