Unable to pattern match constructors inside a list #445
Reference in New Issue
Block a user
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?
The following code will always return
2regardless of what is passed to the functionf.Meanwhile, if the first line of the switch is changed to
a::[] => 1instead of(Some(a))::[] => 1, the pattern matching would work fine.Created by: radrow
It works correctly on master. The generated assembly also looks correct: