X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FTypes.pm;h=64740b13fb12c56ab36d92dbc1c1d284d464f0d2;hb=58bf58dcf21a1ac8054831ec2c6e328241b6ffa6;hp=a08fb6cd1c42045118e19a869bfcda23f98d0ceb;hpb=6beeae32a0ea8a03251ef0f321985687452e8f79;p=gitmo%2FMooseX-Types.git diff --git a/lib/MooseX/Types.pm b/lib/MooseX/Types.pm index a08fb6c..64740b1 100644 --- a/lib/MooseX/Types.pm +++ b/lib/MooseX/Types.pm @@ -20,7 +20,7 @@ use Scalar::Util 'reftype'; use namespace::clean -except => [qw( meta )]; use 5.008; -our $VERSION = '0.11'; +our $VERSION = '0.16'; my $UndefMsg = q{Action for type '%s' not yet defined in library '%s'}; =head1 SYNOPSIS @@ -374,8 +374,8 @@ sub type_export_generator { ## Return an anonymous subroutine that will generate the proxied type ## constraint for you. - - return subname $name => sub { + + return subname "__TYPE__::$name" => sub { my $type_constraint = $class->create_base_type_constraint($name); if(defined(my $params = shift @_)) {