Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 2, 2019 13:48
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/bb75ad4c8d5e79821116575e43c376bf to your computer and use it in GitHub Desktop.
Save Whateverable/bb75ad4c8d5e79821116575e43c376bf to your computer and use it in GitHub Desktop.
evalable6
my @a = <a b>; multi sub ($a where * eq @a.any) { say 42 }; multi sub a(*@a) { say 'WTF?' }; a('a'); a('b'); a(24)
(exit code 1)
===SORRY!=== Error while compiling /tmp/2JDiFL_AIN
An anonymous routine may not take a multi declarator
at /tmp/2JDiFL_AIN:1
------> ti sub ($a where * eq @a.any) { say 42 }⏏; multi sub a(*@a) { say 'WTF?' }; a('a'
expecting any of:
horizontal whitespace
postfix
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment