You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
## Problem\*
Resolves#4879
## Summary\*
Implements closures in the comptime interpreter.
## Additional Context
This ended up being much easier than expected. Almost makes me
suspicious.
## Documentation\*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Aim
Resolving a TODO:
https://github.com/noir-lang/noir/blob/master/compiler/noirc_frontend/src/hir/comptime/interpreter.rs#L168
Expected Behavior
Closures should be able to be called like normal functions
Bug
Calling closures with captures will likely fail when the capture is later referenced
To Reproduce
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
No response
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: