Break it, Class::MOP::Method is losing its overloading somehow. Moving to 5.10 to...
[gitmo/MooseX-Antlers.git] / t / lib / Two.pm
diff --git a/t/lib/Two.pm b/t/lib/Two.pm
new file mode 100644 (file)
index 0000000..a9cfc1d
--- /dev/null
@@ -0,0 +1,13 @@
+package Two; # Exactly the same as One, just in a different package..
+
+use Moose;
+
+my $called_foo = 0;
+
+sub get_called_foo { $called_foo }
+
+has foo => (is => 'rw', required => 1, trigger => sub { $called_foo++ });
+
+__PACKAGE__->meta->make_immutable;
+
+1;