Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve error message, masak++
  • Loading branch information
moritz committed Oct 5, 2011
1 parent fc304e3 commit b7af9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -3571,7 +3571,7 @@ class Perl6::Actions is HLL::Actions {
# Ensure we're not trying to put a placeholder in the mainline.
my $block := $*ST.cur_lexpad();
if $block<IN_DECL> eq 'mainline' {
$/.CURSOR.panic("Cannot declare placeholder parameter $sigil" ~
$/.CURSOR.panic("Cannot use placeholder parameter $sigil" ~
($named ?? ':' !! '^') ~ "$ident in the mainline");
}

Expand Down

0 comments on commit b7af9ff

Please sign in to comment.