Add support for global variables without type annotation #548
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#548
Loading…
Reference in New Issue
No description provided.
Delete Branch "enhance/global-var"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -384,1 +384,4 @@
ast::StmtKind::Assign { .. } => {
panic!("Registration of top-level Assign statements must use TopLevelComposer::register_top_level_var (at {})", ast.location);
}
It's rather confusing why there is such a difference between Assign and AnnAssign. Maybe further code comments would help?
Added a code comment explaining why the difference in behavior.
b2bfd0e9b3
to5839badadd