Skip to content

Instantly share code, notes, and snippets.

@ugexe
Last active August 11, 2017 22:18
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 ugexe/f78c4218235fe2aa0f20955953f8263a to your computer and use it in GitHub Desktop.
Save ugexe/f78c4218235fe2aa0f20955953f8263a to your computer and use it in GitHub Desktop.
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