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

multiple declared subs #1464

Closed
p6rt opened this issue Jan 3, 2010 · 7 comments
Closed

multiple declared subs #1464

p6rt opened this issue Jan 3, 2010 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 3, 2010

Migrated from rt.perl.org#71810 (status was 'resolved')

Searchable as RT71810$

@p6rt
Copy link
Author

p6rt commented Jan 3, 2010

From @nkh

rakudo commit​: db84bc06990c37b93fe987dcffab4ed9bf31de92
build/PARROT_REVISION​: 43076 1.9.0

Case 1​:

multi sub identify(Int $x) {}
sub identify(Int $x, Str $y) {}

# gives no warnings

Case 2​:

multi sub identify(Int $x) {}
sub identify(Int $x, Str $y) {}
multi sub identify(Int $x, Str $y) {}

# gives push_pmc() not implemented in class 'Sub'

Case 3​:

multi sub A(Int $x) {}
sub A(Int $x, Str $y) {1}
sub A(Int $x, Str $y) {2}

sub X(Int $x, Str $y) {1}
sub X(Int $x, Str $y) {2}

# Redefinition of routine X only

@p6rt
Copy link
Author

p6rt commented Mar 9, 2010

From @moritz

All three of those now complain bitterly, and they should.

This ticket can be closed as soon as we have ensured test coverage.

@p6rt
Copy link
Author

p6rt commented Mar 9, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 29, 2010

From @moritz

broken again in current rakudo. Tests are in
t/spec/S04-declarations/multiple.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

From @coke

On Mon Mar 29 05​:42​:50 2010, moritz wrote​:

broken again in current rakudo. Tests are in
t/spec/S04-declarations/multiple.t.

Cheers,
Moritz

I don't see code in that file that resembles the code in the ticket, nor an RT#.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

From @moritz

We now have redeclaration tests in S32-exceptions/misc.t

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 7, 2012
@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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant