4 use warnings FATAL => 'all';
15 use Function::Parameters qw(:strict);
17 method new ($class:) { bless {}, $class; }
19 # not using a type here, so we won't expect Moose to get loaded
20 method foo1 ($bar) {};
23 my $foobar = Foo::Bar->new;
25 # at this point, Moose should not be loaded
27 is $INC{'Moose/Util/TypeConstraints.pm'}, undef, 'no type checking module loaded before method call';
32 # _still_ should have no Moose because we haven't requested any type checking
34 is $INC{'Moose/Util/TypeConstraints.pm'}, undef, 'no type checking module loaded before method call';