Skip to content

Commit

Permalink
Typecheck against nqp::what() not the object itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Jun 24, 2019
1 parent 28d8eb0 commit f62cf1b
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 f62cf1b

Please sign in to comment.