9 plan skip_all => "mouse doesn't support Maybe[] yet";
17 has 'foo' => (is => 'rw', isa => 'Maybe[Str]', trigger => sub {
18 die "Pulling the Foo trigger\n"
21 has 'bar' => (is => 'rw', isa => 'Maybe[Str]');
23 has 'baz' => (is => 'rw', isa => 'Maybe[Str]', trigger => sub {
24 die "Pulling the Baz trigger\n"
27 __PACKAGE__->meta->make_immutable; #(debug => 1);
32 eval { AClass->new(foo => 'bar') };
33 like ($@, qr/^Pulling the Foo trigger/, "trigger from immutable constructor");
35 eval { AClass->new(baz => 'bar') };
36 like ($@, qr/^Pulling the Baz trigger/, "trigger from immutable constructor");
38 lives_ok { AClass->new(bar => 'bar') } '... no triggers called';