Skip to content
Permalink
Browse files

merges class symbols into stub when using require stub:file<>

  • Loading branch information...
tony-o committed Mar 23, 2019
1 parent c26ca6b commit f03c781423181c8c735d3d41f13f03c586fa81e8
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/operators.pm6
@@ -650,6 +650,10 @@ sub REQUIRE_IMPORT($compunit, $existing-path,$top-existing-pkg,$stubname, *@syms
if @missing {
X::Import::MissingSymbols.new(:from($compunit.short-name), :@missing).throw;
}
nqp::gethllsym('perl6','ModuleLoader').merge_globals(
$block.AT-KEY($stubname).WHO,
$GLOBALish,
) if $stubname;
# Merge GLOBAL from compunit.
nqp::gethllsym('perl6','ModuleLoader').merge_globals(
$block<%REQUIRE_SYMBOLS>,

0 comments on commit f03c781

Please sign in to comment.
You can’t perform that action at this time.