# New Ticket Created by  Lloyd Fournier 
# Please include the string:  [perl #126549]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126549 >


# MultiModule.pm
multi sub foo (Str) { }

# main.pl
multi sub foo (Int) { }

{
    use MultiModule.pm
    &foo.candidates.elems #-> 1 (should be 2)
    foo(1); #! fail
}

===========

without the {  } it works of course.

https://github.com/rakudo/rakudo/blob/nom/src/Perl6/World.nqp#L1007

unsophisticated opinion: The $target should be all the symbols in the
lexical scope not just the pad.

LL

Reply via email to