Created
April 22, 2016 10:46
-
-
Save ufobat/daa97cd5dc9815c0ee4d1bb4cdc8837e to your computer and use it in GitHub Desktop.
This file contains 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
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