Subject: | attributes with init_arg => undef lose their value after applying a role |
{
package Foo;
use Moose;
has _read_position => (
init_arg => undef,
is => 'ro',
);
}
{
package R;
use Moose::Role;
}
use Test::More;
my $i = Foo->new(_read_position => 23);
R->meta->apply($i);
is $i->_read_position, 23;
done_testing;