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

Fix types in AST switch statements #1101

Closed
wants to merge 1 commit into from

Conversation

isaachier
Copy link
Contributor

There are more errors when I try to compile the AST, but at least these I could figure out and patch.

@@ -1561,8 +1561,7 @@ pub const Node = struct {
Op.NegationWrap,
Op.Try,
Op.Resume,
Op.UnwrapOptional,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UnwrapOptional seems to be an InfixOp now, not a PrefixOp.

@andrewrk andrewrk closed this in e1f56c9 Jun 13, 2018
@andrewrk
Copy link
Member

Thanks for the PR. I added a test that calls the iterate() method on Node to catch these compile errors in the future.

@isaachier isaachier deleted the ast-switch-fixes branch June 13, 2018 15:55
@isaachier
Copy link
Contributor Author

Thanks. Glad this is fixed.

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

Successfully merging this pull request may close these issues.

None yet

2 participants