Skip to content

Instantly share code, notes, and snippets.

@ufobat
Created April 22, 2016 10: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 ufobat/daa97cd5dc9815c0ee4d1bb4cdc8837e to your computer and use it in GitHub Desktop.
Save ufobat/daa97cd5dc9815c0ee4d1bb4cdc8837e to your computer and use it in GitHub Desktop.
multi sub b($scalar) { say "scalar" };
multi sub b(Str :$t!, *@p) { say "t" };
b(t => '2', 'foo');
#martin@thetis ~/.workspace/p6 % perl6 singature.p6
#Unexpected named parameter 't' passed
# in sub b at singature.p6 line 1
# in block <unit> at singature.p6 line 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment