projects
/
gitmo/Moo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
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
+++ b/
t/subconstructor.t
@@ -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;