not_ return a new Class TC. Confusing, but correct(ish).
}
}
+# This is a bit counter-intuitive, but a child type of a Class type
+# constraint is not itself a Class type constraint (it has no class
+# attribute). This whole create_child_type thing needs some changing
+# though, probably making MMC->new a factory or something.
+sub create_child_type {
+ my ($self, %opts) = @_;
+ return Moose::Meta::TypeConstraint->new(%opts, parent => $self);
+}
+
1;
__END__
=item B<meta>
+=item B<create_child_type>
+
=back
=head1 BUGS