Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 13, 2020 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/5de607b1a23cf4f9163d6c875d403fc2 to your computer and use it in GitHub Desktop.
Save Whateverable/5de607b1a23cf4f9163d6c875d403fc2 to your computer and use it in GitHub Desktop.
evalable6
sub s($v (::T)){ say $v.WHAT, T.^name }; s(42);
(exit code 1)
Cannot unpack or Capture `42`.
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 s at /tmp/nTkRcvO8oF line 1
in block <unit> at /tmp/nTkRcvO8oF line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment