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

Infinite loop during typechecking (recursive types) #277

Open
yannham opened this issue Jan 26, 2021 · 0 comments
Open

Infinite loop during typechecking (recursive types) #277

yannham opened this issue Jan 26, 2021 · 0 comments

Comments

@yannham
Copy link
Member

yannham commented Jan 26, 2021

Describe the bug
Following #270, which has been fixed for usual cases, some terms still make the typechecker loop. The occurs check is not implemented, hence the inference of terms introducing recursive equations crashes.

To Reproduce

nickel typecheck <<< '{g = g 0}.g : Num'

thread 'main' has overflowed its stack
fatal runtime error: stack overflow

Expected behavior
The typechecker should reject such terms without crashing.

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

Successfully merging a pull request may close this issue.

2 participants