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
It's not possible to inject structs or impls in Quoted code returned by annotations. It's explicitly disallowed and the compiler returns: Unsupported statement type to unquote
…5927)
# Description
## Problem\*
Resolves#5913
## Summary\*
Allows inserting new structs and impls into the program from comptime
attributes.
## Additional Context
Inserting new structs wasn't allowed originally since functions wouldn't
be able to refer to them in their signature. This use case isn't needed
for aztec currently so I'm adding this feature now and we can look into
expanding it later. See #5926
## 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.
Problem
It's not possible to inject
structs
orimpl
s inQuoted
code returned by annotations. It's explicitly disallowed and the compiler returns:Unsupported statement type to unquote
Happy Case
Something like this should be possible:
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Blocker
Blocker Context
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: