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

Cannot define a multi sub in a class in Rakudo #998

Closed
p6rt opened this issue May 14, 2009 · 6 comments
Closed

Cannot define a multi sub in a class in Rakudo #998

p6rt opened this issue May 14, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented May 14, 2009

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

Searchable as RT65674$

@p6rt
Copy link
Author

p6rt commented May 14, 2009

From @masak

<Tene> jnthn​: defining a multi sub in a class fails
<Tene> I know why, but can't fix now
<Tene> rakudo​: class A { multi sub foo { ... } }
<p6eval> rakudo 612bcf​: OUTPUT«No method named 'foo' to remove in
class 'A'. [...]
<moritz_> masak​: ticket!
<Tene> can someone make ticket?
<masak> rakudo​: class A { multi foo() {} }
<p6eval> rakudo 612bcf​: OUTPUT«No method named 'foo' to remove in
class 'A'. [...]
* masak makes a ticket!

@p6rt
Copy link
Author

p6rt commented Jun 3, 2009

From @pmichaud

This is now working properly in c907d37 ... assigning ticket for
spectest verification, and then it can be closed.

Thanks!

Pm

@p6rt
Copy link
Author

p6rt commented Jun 3, 2009

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

@p6rt
Copy link
Author

p6rt commented Jun 3, 2009

From @pmichaud

Oh yes, here's the test program I used​:

  $ cat 65674
  class A {
  multi sub foo() { say 'arity 0'; }
  multi sub foo($x) { say 'arity 1'; }
  }

  A​::foo();
  A​::foo(1);

  $ ./perl6 65674
  arity 0
  arity 1

@p6rt
Copy link
Author

p6rt commented Jun 12, 2009

From @moritz

Tested in t/spec/S06-multi/type-based.t, ticket closed.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jun 12, 2009

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

@p6rt p6rt closed this as completed Jun 12, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant