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

Partially applying variant constructors panics in the compiler #202

Closed
Marwes opened this issue Nov 13, 2016 · 0 comments
Closed

Partially applying variant constructors panics in the compiler #202

Marwes opened this issue Nov 13, 2016 · 0 comments

Comments

@Marwes
Copy link
Member

Marwes commented Nov 13, 2016

Partially applied variant constructors will panic with Constructor x is not fully applied' in the compiler. This should either be an error during typechecking (easy) or be rewritten into a lambda (hard)

Reproduction

Type Some into the repl.

Marwes added a commit to Marwes/gluon that referenced this issue Nov 26, 2016
Ideally partially applied constructors should be compiled into an automatically generated lambda but until then we should at least not panic when encountering one.

Fixes gluon-lang#202
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

1 participant