Implement strict constructors, which will warn unkown constructor arguments
[gitmo/Mouse.git] / t / 100_bugs / 026_create_anon_recursion.t
CommitLineData
4c98ebb0 1use strict;
2use warnings;
3
4use Test::More tests => 1;
5use Test::Exception;
6
7use Mouse::Meta::Class;
8
9$SIG{__WARN__} = sub { die if shift =~ /recurs/ };
10
11TODO:
12{
13# local $TODO
14# = 'Loading Mouse::Meta::Class without loading Mouse.pm causes weird problems';
15
16 my $meta;
17 lives_ok {
18 $meta = Mouse::Meta::Class->create_anon_class(
19 superclasses => [ 'Mouse::Object', ],
20 );
21 }
22 'Class is created successfully';
23}