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

augment re-applies roles #1950

Closed
p6rt opened this issue Jul 20, 2010 · 5 comments
Closed

augment re-applies roles #1950

p6rt opened this issue Jul 20, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 20, 2010

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

Searchable as RT76600$

@p6rt
Copy link
Author

p6rt commented Jul 20, 2010

From @markjreed

use MONKEY_TYPING;
role Bar { has $.counter; }
class Pub does Bar { has $.saloon; }
augment class Pub { has $.snug; }

===SORRY!===
Attribute '$!counter' already exists in the class, but a role also
wishes to compose it

This is Rakudo Perl 6, version 2010.06-295-gcf3da00 built on parrot 2.5.0 r48114

--
Mark J. Reed <markjreed@​gmail.com>

@p6rt
Copy link
Author

p6rt commented Sep 23, 2011

From @coke

On Tue Jul 20 10​:06​:14 2010, markjreed wrote​:

use MONKEY_TYPING;
role Bar { has $.counter; }
class Pub does Bar { has $.saloon; }
augment class Pub { has $.snug; }

===SORRY!===
Attribute '$!counter' already exists in the class, but a role also
wishes to compose it

This is Rakudo Perl 6, version 2010.06-295-gcf3da00 built on parrot
2.5.0 r48114

This no longer appears to be the case, this code now completes with no
error.

Needs tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 23, 2011

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

@p6rt
Copy link
Author

p6rt commented Oct 3, 2011

From @moritz

now tested in t/spec/S12-class/augment-supersede.t

@p6rt
Copy link
Author

p6rt commented Oct 3, 2011

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

@p6rt p6rt closed this as completed Oct 3, 2011
@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