use warnings;
use Moose ();
+use Moose::Util::TypeConstraints;
use Test::More;
use Test::Exception;
use Test::Moose;
{
run_tests(build_class);
run_tests( build_class( lazy => 1, default => sub { [ 42, 84 ] } ) );
+
+ # Will force the inlining code to check the entire arrayref when it is modified.
+ subtype 'MyArrayRef', as 'ArrayRef', where { 1 };
+
+ run_tests( build_class( isa => 'MyArrayRef' ) );
+
+ coerce 'MyArrayRef', from 'ArrayRef', via { $_ };
+
+ run_tests( build_class( isa => 'MyArrayRef', coerce => 1 ) );
}
sub run_tests {