From: Matt S Trout Date: Tue, 26 Jun 2012 19:10:27 +0000 (+0000) Subject: extra test from FAIL_RT70593 branch X-Git-Tag: v0.091010~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=37c28fb3ad03f0b141724fbadfedcff6ba55be11;p=gitmo%2FMoo.git extra test from FAIL_RT70593 branch --- diff --git a/t/non-moo-extends.t b/t/non-moo-extends.t new file mode 100644 index 0000000..3a28046 --- /dev/null +++ b/t/non-moo-extends.t @@ -0,0 +1,22 @@ +use strict; +use warnings; +use Test::More; + +{ + package ClassA; + use Moo; + + has 'foo' => ( is => 'ro'); +} + +{ + package ClassB; + our @ISA = 'ClassA'; +} + +package main; + +my $o = ClassB->new; +isa_ok $o, 'ClassB'; + +done_testing;