Skip to content

Commit

Permalink
Merge pull request #2980 from vrurg/EXPORT-bug
Browse files Browse the repository at this point in the history
Decontainerize non-scalar symbols upon import
  • Loading branch information
vrurg committed Jun 13, 2019
2 parents 370c866 + 3af3bde commit 6565810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/World.nqp
Expand Up @@ -1488,7 +1488,8 @@ class Perl6::World is HLL::World {
my @clash;
my @clash_onlystar;
for sorted_keys(%stash) -> $key {
my $value := %stash{$key};
# Prevent exported scalars from deconting. All other symbols are to be unwrapped.
my $value := nqp::iseq_s(nqp::substr($key,0,1),'$') ?? %stash{$key} !! nqp::decont(%stash{$key});
if $target.symbol($key) -> %sym {
# There's already a symbol. However, we may be able to merge
# if both are multis and have onlystar dispatchers.
Expand Down

0 comments on commit 6565810

Please sign in to comment.