3 # when using an Moose object and namespace::autoclean
4 # lazy attributes that get a value on initialize still
5 # have their builders run
15 # use MyMooseObject <- this is inferred here
16 use namespace::autoclean;
18 has attr => ( is => 'lazy' );
23 # use BadObject <- this is inferred here
26 BadObject->new( attr => 1 )->attr,
28 q{namespace::autoclean doesn't run builders with default},