Created
May 6, 2025 13:54
-
-
Save Whateverable/82185ff9a904e7281a2754c752a758a9 to your computer and use it in GitHub Desktop.
evalable6
This file contains hidden or 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
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' |
This file contains hidden or 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) | |
===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