Skip to content

Commit

Permalink
fix "useless use" in import arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Apr 8, 2016
1 parent a93edd9 commit a3b8fef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,10 @@ class Perl6::Actions is HLL::Actions does STDActions {
}

method statement_control:sym<import>($/) {
# NB: Grammar already passed arglist directly to World, but this seems soon enough to want it.
if $<arglist> {
WANTED($<arglist><EXPR>.ast, 'import');
}
my $past := QAST::WVal.new( :value($*W.find_symbol(['Nil'])) );
make $past;
}
Expand Down

0 comments on commit a3b8fef

Please sign in to comment.