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
No description provided.
Delete Branch "%!s(<nil>)"
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?
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]]
.