avert horrible infinite loop
[gitmo/Moo.git] / t / subconstructor.t
diff --git a/t/subconstructor.t b/t/subconstructor.t
new file mode 100644 (file)
index 0000000..edd2718
--- /dev/null
@@ -0,0 +1,18 @@
+use strictures 1;
+use Test::More;
+
+{
+  package SubCon1;
+
+  use Moo;
+
+  has foo => (is => 'ro');
+
+  package SubCon2;
+
+  our @ISA = qw(SubCon1);
+}
+
+ok(SubCon2->new, 'constructor completes');
+
+done_testing;