Skip to content

Commit

Permalink
RakuAST: Fix fully qualified calls to named routines
Browse files Browse the repository at this point in the history
Fixes Foo::Bar::do-something() trying to call Foo::Bar::do.WHO
  • Loading branch information
niner committed Mar 5, 2023
1 parent 7f6cfaa commit 003c775
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Raku/ast/call.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,7 @@ class RakuAST::Call::Name
else {
$call.push(
self.is-resolved
?? $!name.IMPL-QAST-PACKAGE-LOOKUP(
$context,
QAST::WVal.new(:value($!package)),
:lexical(self.resolution),
:sigil<&>
)
?? self.resolution.IMPL-LOOKUP-QAST($context)
!! $!name.IMPL-QAST-PACKAGE-LOOKUP(
$context,
QAST::WVal.new(:value($!package)),
Expand Down

0 comments on commit 003c775

Please sign in to comment.