Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tuple pattern matching issue where some elements would violate ca…
…ps. (ponylang#2658) When pattern-matching tuples that have the same number of elements, ponyc was treating the entire match as violating capabilities when only one of the elements was violating. In truth we should be able to recognize that tuples are distinct from the other elements. This patch fixes `is_tuple_match_tuple` to return MATCHTYPE_REJECT as soon as any pairwise element comparison returns MATCHTYPE_REJECT. The fix was pinpointed by @Praetonus when I discussed this issue with him.
- Loading branch information