DDS bug.. dds_bug
Tomas Doran [Tue, 12 Jan 2010 22:32:31 +0000 (22:32 +0000)]
t/dds_bug.t [new file with mode: 0644]

diff --git a/t/dds_bug.t b/t/dds_bug.t
new file mode 100644 (file)
index 0000000..16d2d72
--- /dev/null
@@ -0,0 +1,30 @@
+use strict;
+use warnings FATAL => 'all';
+use lib 't/lib';
+use Test::More;
+use Data::Dump::Streamer;
+
+sub dump_meta {
+  my $meta = $_[0];
+  local $meta->{methods}{meta};
+  Dump($meta);
+}
+
+{
+    package One;
+    use Moose;
+
+    __PACKAGE__->meta->make_immutable;
+}
+dump_meta(One->meta);
+{
+    package Three;
+    use Moose;
+    use Test::Exception;
+
+    sub BUILD {}
+
+    lives_ok { __PACKAGE__->meta->make_immutable };
+}
+
+done_testing;