Created
March 8, 2014 14:16
-
-
Save jnthn/9431169 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Perl6/ModuleLoader.nqp b/src/Perl6/ModuleLoader.nqp | |
index 591c3ae..4abe848 100644 | |
--- a/src/Perl6/ModuleLoader.nqp | |
+++ b/src/Perl6/ModuleLoader.nqp | |
@@ -281,7 +281,7 @@ class Perl6::ModuleLoader does Perl6::ModuleLoaderVMConfig { | |
# appropriately copied. | |
if $orig.HOW.name($orig) eq 'Stash' { | |
for $orig.FLATTENABLE_HASH() { | |
- unless nqp::existskey($current, $_.key) { | |
+ if !nqp::existskey($current, $_.key) || nqp::substr($_.key, 0, 1) eq '&' { | |
$current{$_.key} := $_.value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment