Skip to content

Commit

Permalink
{%h} constructs a Hash, not a closure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Worthington authored and moritz committed Oct 10, 2009
1 parent 925fd06 commit 3208e7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parser/actions.pm
Expand Up @@ -2261,6 +2261,11 @@ method circumfix($/, $key) {
}
}
}
elsif +@($past[1]) == 1 && $past[1][0].isa(PAST::Var) {
if substr($past[1][0].name(), 0, 1) eq '%' {
$is_hash := 1;
}
}
}
if $is_hash {
my @children := @($past[1]);
Expand Down

0 comments on commit 3208e7b

Please sign in to comment.