From: gfx Date: Tue, 27 Oct 2009 04:59:46 +0000 (+0900) Subject: No import X-Git-Tag: 0.40_02~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b7d1f970ee256df0c5b89dfe7f40648d3c791172;p=gitmo%2FMouse.git No import --- diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index 4ff7100..5aed7ba 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -2,7 +2,7 @@ package Mouse::Util::TypeConstraints; use Mouse::Util qw(does_role not_supported); # enables strict and warnings use Carp qw(confess); -use Scalar::Util qw(blessed); +use Scalar::Util (); use Mouse::Meta::TypeConstraint; use Mouse::Exporter; @@ -174,7 +174,7 @@ sub role_type { my $role = $options->{role} || $name; return _create_type 'subtype', $name => ( as => 'Object', - optimized_as => sub { blessed($_[0]) && does_role($_[0], $role) }, + optimized_as => sub { Scalar::Util::blessed($_[0]) && does_role($_[0], $role) }, type => 'Role', );