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 67cadad commit 9e7f24eCopy full SHA for 9e7f24e
doc/Language/traps.pod6
@@ -1403,7 +1403,9 @@ sub foo(Int) {
1403
say foo rand; # OUTPUT: «No such method 'Int' for invocant of type 'Any'»
1404
=end code
1405
1406
-A simple way to avoid this issue is to declare your sub or method a multi:
+A simple way to avoid this issue is to declare your sub or method a multi,
1407
+so the candidate is elimited during dispatch and the code never gets to
1408
+binding anything inside the sub, thus never entering the routine's body:
1409
1410
=begin code
1411
multi foo(Int) {
0 commit comments