File: subconstructor.t

package info (click to toggle)
libmoo-perl 0.091011-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 476 kB
  • sloc: perl: 1,688; makefile: 4; sh: 1
file content (18 lines) | stat: -rw-r--r-- 204 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;