We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
where
1 parent 0c5ab85 commit 8e000caCopy full SHA for 8e000ca
doc/Type/Signature.pod6
@@ -796,6 +796,13 @@ and follows the same semantics as L<Capture> C<$topic>:
796
42 ~~ :(Int); # RESULT: «False» (Int.Capture throws)
797
set(<a b>) ~~ :(:$a, :$b); # RESULT: «True»
798
799
+Since L«C<where> clauses|/type/Signature#index-entry-where_clause_(Signature)»
800
+are not introspectable, the method cannot determine whether one signature
801
+L<ACCEPTS> the same sort of C<where>-constrained parameter. Such such comparisons
802
+will return C<False>. This includes signatures with literals, which are just
803
+sugar for the C<where>-constraints:
804
+
805
+ say :(42) ~~ :($ where 42) # OUTPUT: «False»
806
807
=head2 method Capture
808
0 commit comments