1 package MooseX::Meta::TypeConstraint::Structured::Optional;
4 use MooseX::Meta::TypeCoercion::Structured::Optional;
6 extends 'Moose::Meta::TypeConstraint::Parameterizable';
8 around parameterize => sub {
12 my $ret = $self->$orig(@_);
14 $ret->coercion(MooseX::Meta::TypeCoercion::Structured::Optional->new(type_constraint => $ret));
19 __PACKAGE__->meta->make_immutable(inline_constructor => 0);