Revision history for Perl extension MooseX-Singleton
{{$NEXT}}
+ - Fix RT Bug #46086, "name used only once" (Thanks chisel for the patch and
+ the test
0.27 2011-05-19
--- /dev/null
+# test script for: https://rt.cpan.org/Ticket/Display.html?id=46086
+use Test::More qw(no_plan);
+use Test::NoWarnings;
+
+BEGIN {
+ package OnlyUsedOnce;
+ use strict;
+ use warnings;
+ use MooseX::Singleton;
+}
+
+BEGIN { OnlyUsedOnce->initialize; }
+
+my $s = OnlyUsedOnce->instance;