Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 9, 2019 23: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/bd3859c9591f1a4157e06f672abb44c9 to your computer and use it in GitHub Desktop.
Save Whateverable/bd3859c9591f1a4157e06f672abb44c9 to your computer and use it in GitHub Desktop.
evalable6
my $a = sub (returns Int) { 0; }; say $a()
(exit code 1)
===SORRY!=== Error while compiling /tmp/AKz_A7SD4w
Invalid typename 'returns' in parameter declaration.
at /tmp/AKz_A7SD4w:1
------> my $a = sub (returns⏏ Int) { 0; }; say $a()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment