Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing multi in lexical scope clobbers the multi #4722

Open
p6rt opened this issue Nov 3, 2015 · 1 comment
Open

Importing multi in lexical scope clobbers the multi #4722

p6rt opened this issue Nov 3, 2015 · 1 comment
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented Nov 3, 2015

Migrated from rt.perl.org#126549 (status was 'new')

Searchable as RT126549$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Nov 3, 2015

From @LLFourn

# 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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.