Skip to content

Commit

Permalink
Merge pull request #3019 from vrurg/rakudo_3012
Browse files Browse the repository at this point in the history
Typecheck against nqp::what() not the object itself.
  • Loading branch information
niner committed Jun 24, 2019
2 parents e98e42e + f62cf1b commit 577265d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/World.nqp
Expand Up @@ -1068,7 +1068,7 @@ class Perl6::World is HLL::World {
my $Map := self.find_symbol(['Map'], :setting-only);
if nqp::istype($result, $Map) {
my $storage := $result.hash.FLATTENABLE_HASH();
self.import($/, $storage, $package_source_name, :need-decont(!($result =:= $Map)));
self.import($/, $storage, $package_source_name, :need-decont(!(nqp::what($result) =:= $Map)));
# $/.check_LANG_oopsies("do_import");
}
else {
Expand Down

0 comments on commit 577265d

Please sign in to comment.