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

Stray "_" in an Orc program causes a compiler crash #214

Open
arthurp opened this issue Oct 4, 2017 · 0 comments
Open

Stray "_" in an Orc program causes a compiler crash #214

arthurp opened this issue Oct 4, 2017 · 0 comments

Comments

@arthurp
Copy link
Member

arthurp commented Oct 4, 2017

The crash is due to the fact that the "_" is a placeholder for lambda expressions. However if the "_" appears without a surrounding "{ }" then the placeholder (Placeholder() instance) will make it all the way through to the translator and cause a MatchError.

The translator should catch this case and print a useful error.

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