roc
roc copied to clipboard
Fix type annotation on var producing duplicate definition error
Summary
- Fixed a bug where a type annotation followed by a var declaration produced a duplicate definition error
- Added
annofield tos_varstatement to store optional type annotations - Updated type annotation processing in the canonicalizer to handle
.@"var"statements
Test plan
- Added eval test to verify annotated var declarations work correctly
- All existing tests pass
zig build minicipasses
Fixes #8660