my $next = shift;
my ($self, $class_variable) = @_;
my $code = $self->$next($class_variable);
- $code = "do { {my \$instance = ($code);";
+ $code = "do { my \$instance = ($code);";
$code .= sprintf(
'$%s::attr{Scalar::Util::refaddr($instance)} = {};',
__PACKAGE__,
use strict;
use warnings;
-use Test::More tests => 28;
+use Test::More tests => 56;
use lib 't/lib';
my @classes = qw(IO Array Hash Moose);
# use Data::Dumper;
# diag Dumper($obj);
+ $sub->meta->make_immutable, redo if $sub->meta->is_mutable;
}