package Mouse::Meta::TypeConstraint;
use Mouse::Util qw(:meta); # enables strict and warnings
-use Scalar::Util ();
sub new {
my $class = shift;
return $self;
}
-sub create_child_type{
+sub create_child_type {
my $self = shift;
- return ref($self)->new(
- @_,
- # and inherits other attributes from the parent
- parent => $self,
- );
+ return ref($self)->new(@_, parent => $self);
}
sub name;
}
sub _as_string { $_[0]->name } # overload ""
-sub _identity { Scalar::Util::refaddr($_[0]) } # overload 0+
+sub _identity; # overload 0+
sub _unite { # overload infix:<|>
my($lhs, $rhs) = @_;
=head1 VERSION
-This document describes Mouse version 0.71
+This document describes Mouse version 0.73
=head1 DESCRIPTION