Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created April 14, 2012 17:46
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 tadzik/2386191 to your computer and use it in GitHub Desktop.
Save tadzik/2386191 to your computer and use it in GitHub Desktop.
$ cat foo.pl
#= zebra
sub foo(Str $a, Int $b, @foo?) { ... };
#= giraffe
method foo(Str $a, Int $b, @foo?) { ... };
$ ./perl6 --doc foo.pl
Useless declaration of a has-scoped method in mainline
sub foo(Str $a, Int $b, @foo?): zebra
method foo(Str $a, Int $b, @foo?): giraffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment