Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 10, 2025 02:06
Show Gist options
  • Save Whateverable/935045a401f76f976616a469ff4ceddb to your computer and use it in GitHub Desktop.
Save Whateverable/935045a401f76f976616a469ff4ceddb to your computer and use it in GitHub Desktop.
evalable6
my \sig = :(Int $a, Str $b); proto f(*@, *%) { if (|@, |%).Capture ~~ sig { say "matched" } }; f 1, "foo"'
(exit code 1)
===SORRY!=== Error while compiling /tmp/6anNeoMBos
Malformed parameter
at /tmp/6anNeoMBos:1
------> my \sig = :(Int $a, Str $b); proto f(*@<HERE>, *%) { if (|@, |%).Capture ~~ sig {
expecting any of:
constraint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment