Correct 'does' method
gfx [Mon, 8 Feb 2010 04:39:40 +0000 (13:39 +0900)]
lib/Mouse/Util.pm

index 3ffa375..4908863 100644 (file)
@@ -350,8 +350,9 @@ sub dump :method {
 }
 
 # general does() method
-sub does :method;
-*does = \&does_role; # alias
+sub does :method {
+    goto &does_role;
+}
 
 1;
 __END__