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.
1 parent cadaf58 commit c0b61c9Copy full SHA for c0b61c9
doc/Type/Routine.pod6
@@ -61,7 +61,14 @@ Returns the package in which the routine is defined.
61
62
method multi(Routine:D: --> Bool:D)
63
64
-Returns C<True> if the routine is a multi sub or method.
+Returns C<True> if the routine is a multi sub or method. Note that
65
+the name of a multi sub refers to its proto and this method would
66
+return false if called on it. It needs to be called on the
67
+candidates themselves:
68
+
69
+ multi foo ($, $) {};
70
+ say &foo.multi # OUTPUT«False»
71
+ say &foo.candidates».multi # OUTPUT«(True)»
72
73
=head2 method candidates
74
0 commit comments