Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #63958] [BUG] Role composition error in module A::B used from A::A

0 views
Skip to first unread message

Matthew Walton

unread,
Mar 18, 2009, 3:05:22 AM3/18/09
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by Matthew Walton
# Please include the string: [perl #63958]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63958 >


This seems to require several files to reproduce.

t.pl:

use v6;
use A::A;
say "alive";

A/A.pm:

module A::A;
use A::B;

A/B.pm:

module A::B;

role B { }
class D does A::B::B { }

upon running t.pl, this happens:

The type A::B::B does not exist. at line 6, near "{ }\n"


This does not appear to happen if the modules are not grouped into a
namespace such as the A in this example.

signature.asc

jnthn@jnthn.net via RT

unread,
Mar 20, 2009, 9:02:57 AM3/20/09
to perl6-c...@perl.org
On Wed Mar 18 00:05:22 2009, matt-w wrote:
> This seems to require several files to reproduce.
>
> t.pl:
>
> use v6;
> use A::A;
> say "alive";
>
> A/A.pm:
>
> module A::A;
> use A::B;
>
> A/B.pm:
>
> module A::B;
>
> role B { }
> class D does A::B::B { }
>
>
> upon running t.pl, this happens:
>
> The type A::B::B does not exist. at line 6, near "{ }\n"
>
Fixed in git 8207372.

Assigning to moritz++ to get a test case added to the spectests.

Thanks,

Jonathan

0 new messages