Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sub foo {*} and sub foo { '{*}' } are not the same, *sigh*
  • Loading branch information
sorear committed Dec 19, 2011
1 parent 80c1f80 commit 25c05b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/niecza
Expand Up @@ -78,7 +78,7 @@ method metachar:sym<{*}> ($/) {
}

method is_dispatcher($blockoid) {
$blockoid.Str ~~ m/ '{' \s* '*' \s* '}' /;
$blockoid.Str ~~ m:pos(0) / '{' \s* '*' \s* '}' /;
}
method finish_method_routine ($/) {
if self.is_dispatcher($<blockoid>) {
Expand Down

0 comments on commit 25c05b3

Please sign in to comment.