File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,8 @@ class NQP::Actions is HLL::Actions {
309
309
}
310
310
311
311
method statement_prefix :sym <INIT >($/ ) {
312
- my $ init_block := PAST::Block. new (: blocktype(' immediate' ));
313
- $ init_block . loadinit. push ($ < blorst > . ast);
314
- make $ init_block ;
312
+ @ BLOCK [0 ]. push ($ < blorst > . ast);
313
+ make PAST::Stmts. new ();
315
314
}
316
315
317
316
method statement_prefix :sym <try >($/ ) {
@@ -614,6 +613,10 @@ class NQP::Actions is HLL::Actions {
614
613
$ past := PAST::Stmts. new ();
615
614
}
616
615
elsif $ * SCOPE eq ' our' {
616
+ # Depending on if this was already considered our scoped,
617
+ # we may or may not have got a node in $var that's set up
618
+ # right already. We build it here just to be sure.
619
+ $ name := ~ $ < variable > ;
617
620
$ past := lexical_package_lookup([$ name ], $/ );
618
621
$ past . viviself( vivitype($ sigil ) );
619
622
$ BLOCK . symbol($ name , : scope(' package' ) );
You can’t perform that action at this time.
0 commit comments