Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subtype parameters by their type constraints in Parameter.ACCEPTS
Parameters can be of a type, but not accept all values of that type in a number of different ways: - Int $nat where * >= 0 - @tuple [$, $] - |tuple ($, $) - &f:($) i.e. post constraints, subsignatures, and signature constraints. Parameters do not smartmatch accordingly, but allowing them to do so is a matter of removing some paranoid else blocks. While we're here, take care of some nits with the other half of each.
- Loading branch information
Showing
1 changed file
with
10 additions
and
22 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