Implement support for Literal
with multiple bounds #370
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#370
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Currently, if multiple bounds are specified and unification is naively extended, the following code will fail to compile:
with
It appears that after unifying the first call to
consume
, the parameter type ofconsume
will be substituted with the argument type (i.e.C[Literal[1]]
), then the next unification would fail becauseC[Literal[1]]
cannot be unified withC[Literal[2]]
.