6 use Test::More no_plan => 1;
19 'My::Role::baz(' . $next->(@_) . ')';
27 sub baz { 'Foo::baz' }
29 __PACKAGE__->meta->make_immutable(debug => 0);
35 is($foo->baz, 'Foo::baz', '... got the right value');
38 My::Role->meta->apply($foo)
39 } '... successfully applied the role to immutable instance';
41 is($foo->baz, 'My::Role::baz(Foo::baz)', '... got the right value');