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

Typechecker - bug in synthesizing types of RetE expressions when assumed return type is T.Pre? #28

Closed
crusso opened this issue Sep 21, 2018 · 1 comment

Comments

@crusso
Copy link
Contributor

crusso commented Sep 21, 2018

func f(i:Int) : Int { i; }; let d = async { return f(4); };
crashes the compiler:
[crusso@LAPTOP-CT4C97Q0 async]$ asc -r repro.as
prelude:34.26-34.38: internal error, File "typing.ml", line 590, characters 2-8: Assertion failed

Last environment:
abs = func
ignore = func
print = func
printInt = func
range = class
revrange = class

Raised at file "typing.ml", line 590, characters 2-21
Called from file "typing.ml", line 521, characters 8-28
Called from file "typing.ml", line 302, characters 10-28
Called from file "typing.ml", line 290, characters 13-36
Called from file "typing.ml", line 955, characters 4-21
Called from file "typing.ml", line 940, characters 10-59
Called from file "typing.ml", line 430, characters 24-51
Called from file "typing.ml", line 302, characters 10-28
Called from file "typing.ml", line 290, characters 13-36
Called from file "typing.ml", line 529, characters 12-31
Called from file "typing.ml", line 302, characters 10-28
Called from file "typing.ml", line 290, characters 13-36
Called from file "typing.ml", line 957, characters 31-50
Called from file "typing.ml", line 1040, characters 16-42
Called from file "typing.ml", line 996, characters 2-56
Called from file "pipeline.ml", line 134, characters 43-70
Called from file "pipeline.ml", line 105, characters 37-52
Called from file "pipeline.ml", line 128, characters 10-41
Called from file "pipeline.ml", line 166, characters 8-23
Called from file "pipeline.ml", line 228, characters 15-33
Called from file "main.ml", line 56, characters 38-65
Called from file "main.ml", line 73, characters 4-23
[crusso@LAPTOP-CT4C97Q0 async]$

@crusso crusso changed the title Typechecker - bug in synthezing types of RetE expressions when return type is T.Pre? Typechecker - bug in synthesizing types of RetE expressions when assumed return type is T.Pre? Sep 21, 2018
@rossberg
Copy link
Contributor

rossberg commented Oct 1, 2018

Fixed.

@rossberg rossberg closed this as completed Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants