-
-
Save ugexe/f78c4218235fe2aa0f20955953f8263a to your computer and use it in GitHub Desktop.
This file contains 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 4a467ef9d..55c41154a 100644 | |
--- a/src/Perl6/ModuleLoader.nqp | |
+++ b/src/Perl6/ModuleLoader.nqp | |
@@ -140,6 +140,9 @@ class Perl6::ModuleLoader does Perl6::ModuleLoaderVMConfig { | |
# "Latest wins" semantics for functions | |
($target){$sym} := $_.value; | |
} | |
+ elsif (($target){$sym}).WHO =:= $_.value.WHO { | |
+ # Do nothing | |
+ } | |
else { | |
nqp::die("P6M Merging GLOBAL symbols failed: duplicate definition of symbol $sym"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment