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

Role composition error in module A::B used from A::A #794

Closed
p6rt opened this issue Mar 18, 2009 · 5 comments
Closed

Role composition error in module A::B used from A::A #794

p6rt opened this issue Mar 18, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 18, 2009

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

Searchable as RT63958$

@p6rt
Copy link
Author

p6rt commented Mar 18, 2009

From @mathw

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.

@p6rt
Copy link
Author

p6rt commented Mar 20, 2009

From @jnthn

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

@p6rt
Copy link
Author

p6rt commented Mar 20, 2009

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

@p6rt
Copy link
Author

p6rt commented Mar 22, 2009

From @moritz

Now tested in t/spec/S11-modules/nested.t (and added to t/spectest.data).

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Mar 22, 2009

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

@p6rt p6rt closed this as completed Mar 22, 2009
@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