Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 6, 2025 13:54
Show Gist options
  • Save Whateverable/82185ff9a904e7281a2754c752a758a9 to your computer and use it in GitHub Desktop.
Save Whateverable/82185ff9a904e7281a2754c752a758a9 to your computer and use it in GitHub Desktop.
evalable6
package Flip { enum coin is export <heads tails>; }; import Flip; multi MAIN(:$a) { $a.WHAT.say }; multi MAIN(coin(Str) :$a) { say $a }; MAIN(a => 'heads'
(exit code 1)
===SORRY!=== Error while compiling /tmp/WzjVHWvTVZ
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at /tmp/WzjVHWvTVZ:1
------> (Str) :$a) { say $a }; MAIN(a => 'heads'<HERE><EOL>
expecting any of:
postfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment