Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
handle missing <block> in routine_def
  • Loading branch information
FROGGS committed Jun 4, 2013
1 parent 37adf8f commit 53e3a12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Perl5/Actions.nqp
Expand Up @@ -2139,6 +2139,9 @@ class Perl5::Actions is HLL::Actions does STDActions {

method routine_def($/) {
$V5DEBUG && say("routine_def($/)");
unless $<blockoid> {
return make QAST::Var.new( :name<Nil>, :scope<lexical>, :node($/) );
}
my $block;

# if $<onlystar> {
Expand Down

0 comments on commit 53e3a12

Please sign in to comment.