MyCompositeRoleB => { accessor => 'bar' };
};
-TODO: {
- local $TODO = "role-role application for parameterized roles doesn't work yet";
- ok(MyDoubleConsumer->can('foo'), 'first role in composite applied successfully');
- ok(MyDoubleConsumer->can('bar'), 'second role in composite applied successfully');
-};
+ok(MyDoubleConsumer->can('foo'), 'first role in composite applied successfully');
+ok(MyDoubleConsumer->can('bar'), 'second role in composite applied successfully');
do {
package MyExtendingRole;
MyExtendingRole => { foo => 23 };
};
-TODO: {
- local $TODO = "role-role application for parameterized roles doesn't work yet";
- ok(MyExtendedConsumer->can('baz'), 'role composed directly applied successfully');
- ok(MyExtendedConsumer->can('bar'), 'role composed through other role applied successfully');
- is(eval { MyExtendedConsumer->new->foo }, 23, 'role composing other role applied successfully');
-};;
+ok(MyExtendedConsumer->can('baz'), 'role composed directly applied successfully');
+ok(MyExtendedConsumer->can('bar'), 'role composed through other role applied successfully');
+is(eval { MyExtendedConsumer->new->foo }, 23, 'role composing other role applied successfully');
do {
package MyRoleProxy;
);
};
-TODO: {
- local $TODO = "role-role application for parameterized roles doesn't work yet";
- ok(MyProxyConsumer->can('baz'), 'proxied role got applied successfully');
- ok(MyProxyConsumer->can('qux'), 'other role besides proxied one got applied successfully');
-};
+ok(MyProxyConsumer->can('baz'), 'proxied role got applied successfully');
+ok(MyProxyConsumer->can('qux'), 'other role besides proxied one got applied successfully');