-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
with tuple causes compiler to abort #3581
Comments
This is clearly a bug. Though, strictly speaking, Also there is also no test coverage yet for tuple destructuring in with expressions. The bug is in https://github.com/ponylang/ponyc/blob/master/src/libponyc/pass/sugar.c#L542 when the left side of the with-expression is a tuple, it calls itself recursively with the AST-child of that tuple, expecting a |
The following code causes the compiler to abort:
I think it's the (a,b) on the LHS. The output:
The text was updated successfully, but these errors were encountered: