File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,10 @@ You declare each candidate with the C<multi> declarator:
212
212
congratulate 'Larry'; # OUTPUT: «Happy birthday, Larry»
213
213
congratulate 'Bob', 45; # OUTPUT: «Happy 45th birthday, Bob»
214
214
215
- Dispatch can happen on the number of arguments (the L < arity|/type/Routine#(Code)_method_arity > ), but also on the
216
- type:
215
+ Dispatch can happen on the number of arguments (the L < arity|/type/Routine#(Code)_method_arity > ), the
216
+ type of arguments but also on additional assertions which can be placed on them. For more information
217
+ about type constraints see the documentation for the L < Signature|/type/Signature#Type_Constraints >
218
+ class.
217
219
218
220
multi as-json(Bool $d) { $d ?? 'true' !! 'false'; }
219
221
multi as-json(Real $d) { ~$d }
You can’t perform that action at this time.
0 commit comments