Check map literals (bare, typed, keyed) #57
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#57
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::MapLiteral -- key_type/value_type when present are the source of truth for every entry, otherwise every key and every value must each agree on one inferred type. Result type is Map(K, V).
Dependency: no TyKind variant exists yet for a generic container instantiation (checked -- only Bool/Enum/Error/Float/Fn/Int/String/Struct/Type/TypeParam/Unit). Deciding how Map(K, V) gets represented as a concrete Ty is tracked separately in #69 (not #6, which only covers T: type params / List(T)-shaped calls as ordinary function calls, not this) -- needs that settled first.