Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix array constructor.
  • Loading branch information
jnthn committed Aug 7, 2012
1 parent 3f525aa commit eeeaea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NQPQ/Actions.pm
Expand Up @@ -1291,7 +1291,7 @@ class NQP::Actions is HLL::Actions {
my $past;
if $<EXPR> {
$past := $<EXPR>[0].ast;
if $past.name ne '&infix:<,>' {
unless nqp::istype($past, QAST::Op) && $past.name eq '&infix:<,>' {
$past := QAST::Op.new( $past, :op('list') );
}
}
Expand Down

0 comments on commit eeeaea0

Please sign in to comment.