sui
sui copied to clipboard
[move] Fix issue where varcalls could persist into typing without an error.
Description
This fixes a bug in how var calls were being resolved across naming into typing, when the variable was not a valid macro call target.
This also adds a lambda
feature gate to make error reporting a bit nicer in these cases.
Test plan
New tests cover the crash/bug and ensure it doesn't occur now.
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.
- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] Indexer:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK: