forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix over-restrictive rule for generic cap pattern matching
The new rule for generic capability pattern matching introduced in bab5b3a turned out to be too restrictive and disallowed legitimate cases. This changes the rule from "every possible instantiation of the operand is a subtype of every possible instantiation of the pattern" to "every possible instantiation of the operand is a subtype of some possible instantiation of the pattern" Closes ponylang#2584.
- Loading branch information
Benoit Vey
committed
Mar 12, 2018
1 parent
41b80ee
commit 2b5dc33
Showing
4 changed files
with
188 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters