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

missing overloaded methods don't tell what role needs them #5837

Closed
p6rt opened this issue Nov 29, 2016 · 5 comments
Closed

missing overloaded methods don't tell what role needs them #5837

p6rt opened this issue Nov 29, 2016 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Nov 29, 2016

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

Searchable as RT130211$

@p6rt
Copy link
Author

p6rt commented Nov 29, 2016

From @gfldex

EVAL 'role R { method overload-this(){...} }; class A does R {}; ';
CATCH { default { say .^name, .Str } }

# OUTPUT«X​::Comp​::AdHocMethod 'overload-this' must be implemented by A
# because it is required by a role␤»

# expected
# OUTPUT«X​::Comp​::AdHocMethod 'overload-this' must be implemented by A
# because it is required by a role R␤»

# Please update the docs at
# https://docs.perl6.org/language/typesystem#role or file a github issue

@p6rt
Copy link
Author

p6rt commented Dec 13, 2016

From @zoffixznet

On Tue, 29 Nov 2016 03​:36​:09 -0800, gfldex wrote​:

EVAL 'role R { method overload-this(){...} }; class A does R {}; ';
CATCH { default { say .^name, .Str } }

# OUTPUT«X​::Comp​::AdHocMethod 'overload-this' must be implemented by A
# because it is required by a role␤»

# expected
# OUTPUT«X​::Comp​::AdHocMethod 'overload-this' must be implemented by A
# because it is required by a role R␤»

# Please update the docs at
# https://docs.perl6.org/language/typesystem#role or file a github issue

Fixed in rakudo/rakudo@bff0510

Tests needed.

@p6rt
Copy link
Author

p6rt commented Dec 13, 2016

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

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

From @zoffixznet

Tests added Raku/roast@a9fd375

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

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

@p6rt p6rt closed this as completed Dec 15, 2016
@p6rt p6rt added the testneeded 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
Development

No branches or pull requests

1 participant