Skip to content

Commit

Permalink
flatten export trait list, like we do for Routines
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Sep 10, 2015
1 parent 93bb1ae commit 75665e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Variable.pm
Expand Up @@ -90,9 +90,9 @@ multi sub trait_mod:<is>(Variable:D $v, :$export!) {
);
}
my $var := $v.var;
my @tags = 'ALL', (nqp::istype($export,Pair) ?? $export.key() !!
nqp::istype($export,Positional) ?? @($export)>>.key !!
'DEFAULT');
my @tags = flat 'ALL', (nqp::istype($export,Pair) ?? $export.key() !!
nqp::istype($export,Positional) ?? @($export)>>.key !!
'DEFAULT');
EXPORT_SYMBOL($var.VAR.name, @tags, $var);
}

Expand Down

0 comments on commit 75665e3

Please sign in to comment.