-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
In this context, s is not a string. The compiler requires it to be gradient. It also requires the _ of the third match to be a gradient. It warns if there are not 3 patterns in the switch statement, but the second element in the tuple of all 3 take on the variable type of the first. This can be proven by swapping the first and second patterns, which then fails because g is not a string.
I like the idea of using a witness type but this seems to be unusable.
Metadata
Metadata
Assignees
Labels
No labels