Skip to content

Add support for ConstantNode in checker #197

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

Merged
merged 2 commits into from
Aug 10, 2021

Conversation

mhr3
Copy link
Contributor

@mhr3 mhr3 commented Aug 9, 2021

After implementing an ast.Visitor (and using expr.Patch) which replaced some nodes with a ConstantNode, I was getting panics from checker.Check, as it didn't expect a ConstantNode, but this simple patch fixes that.

@antonmedv
Copy link
Member

Awesome! Can you add test for it?

@mhr3
Copy link
Contributor Author

mhr3 commented Aug 9, 2021

added

@antonmedv antonmedv merged commit 6198684 into expr-lang:master Aug 10, 2021
@mhr3 mhr3 deleted the checker-const-support branch August 10, 2021 16:41
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.

2 participants