Skip to content

Commit

Permalink
&-less import of sub does not produce Null PMC access error
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Sep 11, 2016
1 parent 7414702 commit cda0cb3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions S11-modules/require.t
Expand Up @@ -49,11 +49,9 @@ my $name = 't/spec/S11-modules/InnerModule.pm';
}

#RT #118407
#?rakudo skip "Trying to import from 'InnerModule', but the following symbols are missing: quux RT #118407"
{
require InnerModule:file($name) <quux>;
is quux(), 'Inner::quux', "can import quux without ampersand (&quux)";
}
throws-like { require InnerModule:file($name) <quux> },
X::Import::MissingSymbols,
'&-less import of sub does not produce `Null PMC access` error';

# no need to do that at compile time, since require() really is run time
PROCESS::<$REPO> := CompUnit::Repository::FileSystem.new(:prefix<t/spec/packages>, :next-repo($*REPO));
Expand Down

0 comments on commit cda0cb3

Please sign in to comment.