Skip to content

Commit

Permalink
MAIN fix from NQP.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 28, 2013
1 parent ef71881 commit 54fb61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nqp-cc/nqp-src/NQP.nqp
Expand Up @@ -1702,7 +1702,7 @@ class NQP::Actions is HLL::Actions {
:op('if'),
QAST::Var.new( :scope('lexical'), :name('@ARGS') ),
QAST::Op.new(
:op('call'), QAST::BVal.new( :value($*MAIN_SUB) ),
:op('call'), :name('&' ~ $*MAIN_SUB.name),
QAST::Var.new( :scope('lexical'), :name('@ARGS'), :flat(1) )
)
));
Expand Down

0 comments on commit 54fb61d

Please sign in to comment.