Permalink
Browse files

Fix a braino in HLL/Compiler.pm. Can't flatten a list into an op call.

  • Loading branch information...
1 parent b278ea2 commit 2e571759ab6a4b713995ec44115c2d0ba9f60af7 @arnsholt arnsholt committed Mar 25, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/HLL/Compiler.pm
View
@@ -443,7 +443,10 @@ class HLL::Compiler does HLL::Backend::Default {
method evalfiles($files, *@args, *%adverbs) {
my $target := nqp::lc(%adverbs<target>);
my $encoding := %adverbs<encoding>;
- my @files := nqp::islist($files) ?? nqp::list_s(|$files) !! nqp::list_s($files);
+ my @files := nqp::list_s();
+ for nqp::islist($files) ?? $files !! [$files] -> $file {
+ nqp::push_s(@files, $file);
+ }
$!user_progname := nqp::join(',', @files);
my @codes := nqp::list_s();
for @files -> $filename {

0 comments on commit 2e57175

Please sign in to comment.