Skip to content

Commit

Permalink
Make sure all candidates have same invocant sig
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 26, 2015
1 parent f2ac7ee commit 421022d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -1141,7 +1141,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
}

proto method trans(|) { $/ := nqp::getlexcaller('$/'); {*} }
multi method trans(Pair:D \what, *%n) {
multi method trans(Str:D: Pair:D \what, *%n) {
my $from = what.key;
my $to = what.value;
$/ := CALLERS::('$/');
Expand Down

0 comments on commit 421022d

Please sign in to comment.