X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F900_bug%2F006_RT69939t;fp=t%2F900_bug%2F006_RT69939t;h=680dee886a121a314b6807ec768e6bc59a1d1a8d;hp=0000000000000000000000000000000000000000;hb=84787870ff8a3c5f9ba3af9c60edd6ada26da6da;hpb=5bc4e0be9bbb708110180a33ab779caf68d93aa3 diff --git a/t/900_bug/006_RT69939t b/t/900_bug/006_RT69939t new file mode 100644 index 0000000..680dee8 --- /dev/null +++ b/t/900_bug/006_RT69939t @@ -0,0 +1,38 @@ +#!perl -w + +package Foo; +use Mouse; + +has bar => ( + is => 'rw', + + trigger => sub { + eval 'BEGIN{ die }'; + }, + default => sub { + eval 'BEGIN{ die }'; + return 42; + }, +); + +sub BUILDARGS { + eval 'BEGIN{ die }'; + return {}; +} + +sub BUILD { + eval 'BEGIN{ die }'; +} + +package main; + +use Test::More tests => 3; + +$@ = '(ERRSV)'; + +my $foo = Foo->new; +isa_ok $foo, 'Foo'; +is $foo->bar, 42; +$foo->bar(100); +is $foo->bar, 100; +note("\$@=$@");