Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created March 8, 2014 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/9431169 to your computer and use it in GitHub Desktop.
Save jnthn/9431169 to your computer and use it in GitHub Desktop.
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