use strict;
use warnings;
-use Test::More tests => 5; #6;
+use Test::More tests => 6; #7;
use Test::Exception;
BEGIN {
extends 'Bucket';
+ package MyBase;
+
+ sub foo { }
+
+ package Custom::Meta1;
+ use base qw(Moose::Meta::Class);
+
+ package Custom::Meta2;
+ use base qw(Moose::Meta::Class);
+
+ package SubClass1;
+ use metaclass 'Custom::Meta1';
+ use Moose;
+
+ extends 'MyBase';
+
+ package SubClass2;
+ use metaclass 'Custom::Meta2';
+ use Moose;
+
# XXX FIXME subclassing meta-attrs and immutable-ing the subclass fails
}
#lives_ok {
# Old::Bucket::Nose->meta->make_immutable(debug => 0);
#} 'Immutability on Moose class extending Class::MOP class ok';
+
+lives_ok {
+ SubClass2::extends('MyBase');
+} 'Can subclass the same non-Moose class twice with different metaclasses';