From: Fuji, Goro Date: Tue, 28 Sep 2010 12:32:36 +0000 (+0900) Subject: Fix 'does' check in pure Perl X-Git-Tag: 0.77~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e972d1c9c458342acd4cd348ce5db81f0ff6fd33;p=gitmo%2FMouse.git Fix 'does' check in pure Perl --- diff --git a/lib/Mouse/PurePerl.pm b/lib/Mouse/PurePerl.pm index d14895e..c5256c1 100644 --- a/lib/Mouse/PurePerl.pm +++ b/lib/Mouse/PurePerl.pm @@ -534,7 +534,7 @@ sub _process_options{ if(defined $tc){ # both isa and does supplied my $does_ok = do{ local $@; - eval{ "$tc"->does($args) }; + eval{ "$tc"->does($args->{does}) }; }; if(!$does_ok){ $class->throw_error("Cannot have both an isa option and a does option because '$tc' does not do '$args->{does}' on attribute ($name)");