Created
September 7, 2019 16:12
-
-
Save Whateverable/9d8e601e59d0bcf04f02ba92f2aec0ad to your computer and use it in GitHub Desktop.
evalable6
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
sub a(:$foo [*@foos]) { say @foos.perl }; a(foo => [1, 2]); a(foo => 3) |
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
(exit code 1) | |
[1, 2] | |
Cannot unpack or Capture `3`. | |
To create a Capture, add parentheses: \(...) | |
If unpacking in a signature, perhaps you needlessly used parentheses? -> ($x) {} vs. -> $x {} | |
or missed `:` in signature unpacking? -> &c:(Int) {} | |
in sub a at /tmp/Cgq4tz2VTB line 1 | |
in block <unit> at /tmp/Cgq4tz2VTB line 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment