}
{
+ package Foo::Child;
+ use Moose;
+
+ extends 'Foo';
+}
+
+{
package Bar::Child;
use Moose;
with_immutable {
- for my $thing ( 'Foo', Foo->new ) {
+ for my $thing ( 'Foo', Foo->new, 'Foo::Child', Foo::Child->new ) {
my $name = ref $thing ? 'Foo object' : 'Foo class';
$name .= ' (immutable)' if $thing->meta->is_immutable;