Check .field access on structs #55
Labels
No labels
bug
design
epic
risk
user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jacksonopp/twill#55
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type-check Expr::Field -- base must resolve to a TyKind::Struct, and name must be one of its declared fields; the access's type is that field's declared type. Enum-variant access stays out of scope per #4's note -- that's Expr::Call/Expr::Match's territory.