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 dies when trying to inherit from two distinct classes punned from roles inheriting the same parent role #708

Closed
p6rt opened this issue Feb 19, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 19, 2009

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

Searchable as RT63332$

@p6rt
Copy link
Author

p6rt commented Feb 19, 2009

From @masak

<masak> what about this one?
<masak> rakudo​: role A {}; role B does A {}; role C does A {}; class D
is B is C {}
<p6eval> rakudo 543e22​: OUTPUT«The class 'D' already has a parent
class ''. It may have been supplied by a role. [...]
<masak> not 'is' instead of 'does'.
<masak> s/not/note/
<jnthn> Hmm.
<masak> last time I checked, multi inheritance wasn't a crime :)
<jnthn> I have no idea why it'd be doing that. You're doing two
different punned classes.
<jnthn> Erm, inheriting from two different punned classes.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Feb 19, 2009

From @moritz

On Thu Feb 19 02​:41​:42 2009, masak wrote​:

<masak> what about this one?
<masak> rakudo​: role A {}; role B does A {}; role C does A {}; class D
is B is C {}
<p6eval> rakudo 543e22​: OUTPUT«The class 'D' already has a parent
class ''. It may have been supplied by a role. [...]
<masak> not 'is' instead of 'does'.
<masak> s/not/note/
<jnthn> Hmm.
<masak> last time I checked, multi inheritance wasn't a crime :)
<jnthn> I have no idea why it'd be doing that. You're doing two
different punned classes.
<jnthn> Erm, inheriting from two different punned classes.
* masak submits rakudobug

Test added to t/spec/S12-roles/composition.t

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Feb 19, 2009

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

@p6rt
Copy link
Author

p6rt commented May 8, 2009

From @jnthn

On Thu Feb 19 09​:46​:34 2009, moritz wrote​:

On Thu Feb 19 02​:41​:42 2009, masak wrote​:

<masak> what about this one?
<masak> rakudo​: role A {}; role B does A {}; role C does A {}; class D
is B is C {}
<p6eval> rakudo 543e22​: OUTPUT«The class 'D' already has a parent
class ''. It may have been supplied by a role. [...]
<masak> not 'is' instead of 'does'.
<masak> s/not/note/
<jnthn> Hmm.
<masak> last time I checked, multi inheritance wasn't a crime :)
<jnthn> I have no idea why it'd be doing that. You're doing two
different punned classes.
<jnthn> Erm, inheriting from two different punned classes.
* masak submits rakudobug

Test added to t/spec/S12-roles/composition.t

Bug fixed as of git 52419be (and an underlying Parrot one that was part
of it) and tests unfudged.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented May 8, 2009

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

@p6rt p6rt closed this as completed May 8, 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