Implement strict constructors, which will warn unkown constructor arguments
[gitmo/Mouse.git] / t / 100_bugs / 004_subclass_use_base_bug.t
CommitLineData
4c98ebb0 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 2;
7
8
9
10=pod
11
12This just makes sure that the Bar gets
13a metaclass initialized for it correctly.
14
15=cut
16
17{
18 package Foo;
19 use Mouse;
20
21 package Bar;
22 use strict;
23 use warnings;
24
25 use base 'Foo';
26}
27
28my $bar = Bar->new;
29isa_ok($bar, 'Bar');
53f38c53 30isa_ok($bar, 'Foo');