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

rakudo should complain about re-definition of non-multi method #1105

Closed
p6rt opened this issue Jun 27, 2009 · 6 comments
Closed

rakudo should complain about re-definition of non-multi method #1105

p6rt opened this issue Jun 27, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 27, 2009

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

Searchable as RT67024$

@p6rt
Copy link
Author

p6rt commented Jun 27, 2009

From amoc.yn@gmail.com

<amoc> rakudo​: class A { method foo() {say 'no argument~'}; method foo($a) {
$a.say }}; my $o = A.new; $o.foo(1); $o.foo();
<p6eval> rakudo 6c43f9​: OUTPUT«1␤too few arguments passed (1) - 3 params
expected␤in method A​::foo (/tmp/llOR59FON7​:2)␤called from Main
(/tmp/llOR59FON7​:2)␤»
<moritz_> amoc​: the error is that rakudo should complain about re-defintion
of non-multi method

@p6rt
Copy link
Author

p6rt commented Jul 5, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/t/spec/S12-methods/multi.t

@p6rt
Copy link
Author

p6rt commented Jul 5, 2009

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

@p6rt
Copy link
Author

p6rt commented Sep 11, 2011

From @bbkr

Works as expected on NOM.

bbkr​:nom bbkr$ ./perl6 -e 'class A { method foo() {say "no argument~"};
method foo($a) { $a.say }}; my $o = A.new; $o.foo(1); $o.foo();'
===SORRY!===
Package 'A' already has a method 'foo'; did you mean to declare a
multi-method?

@p6rt
Copy link
Author

p6rt commented Sep 11, 2011

From @bbkr

Test unfudged and working.

@p6rt
Copy link
Author

p6rt commented Sep 11, 2011

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

@p6rt p6rt closed this as completed Sep 11, 2011
@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