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

method delegation doesn't work in roles #3721

Closed
p6rt opened this issue Mar 6, 2015 · 5 comments
Closed

method delegation doesn't work in roles #3721

p6rt opened this issue Mar 6, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Mar 6, 2015

Migrated from rt.perl.org#124007 (status was 'open')

Searchable as RT124007$

@p6rt
Copy link
Author

p6rt commented Mar 6, 2015

From @raydiak

As seen at http://irclog.perlgeek.de/perl6/2015-03-06#i_10237611 :

r​: role R { method foo () handles <bar> { } }
rakudo-moar 1b74e4​: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤Method 'add_method' not found for invocant of class 'Perl6​::Metamodel​::GenericHOW'␤at /tmp/tmpfile​:1␤------> ␤»

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

From @AlexDaniel

Still reproducible (2017.11,HEAD(e5b660e))

On 2015-03-06 14​:35​:06, raydiak@​cyberuniverses.com wrote​:

As seen at http://irclog.perlgeek.de/perl6/2015-03-06#i_10237611 :

r​: role R { method foo () handles <bar> { } }
rakudo-moar 1b74e4​: OUTPUT«===SORRY!=== Error while compiling
/tmp/tmpfile␤Method 'add_method' not found for invocant of class
'Perl6​::Metamodel​::GenericHOW'␤at /tmp/tmpfile​:1␤------> ␤»

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

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

@p6rt p6rt added the Bug label Jan 5, 2020
@usev6
Copy link

usev6 commented Oct 8, 2023

This doesn't fail anymore:

$ ./rakudo-m -e 'role R { method foo () handles <bar> { say "alive" } }; R.foo'
alive

Tagging "testneeded".

@usev6
Copy link

usev6 commented Oct 21, 2023

I've added a test with Raku/roast@91997f55b3.

Closing as "resolved".

@usev6 usev6 closed this as completed Oct 21, 2023
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

2 participants