added default {} keyword
[gitmo/Moose.git] / t / 103_subclass_use_base_bug.t
CommitLineData
fcb7afc2 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 3;
7
8BEGIN {
9 use_ok('Moose');
10}
11
12=pod
13
14This just makes sure that the Bar gets
15a metaclass initialized for it correctly.
16
17=cut
18
19{
20 package Foo;
fcb7afc2 21 use Moose;
22
23 package Bar;
24 use strict;
25 use warnings;
26
27 use base 'Foo';
28}
29
30my $bar = Bar->new;
31isa_ok($bar, 'Bar');
32isa_ok($bar, 'Foo');