with now applies all roles and not just the first, since according to the POD with...
Christian Walde [Fri, 1 Jun 2012 13:22:44 +0000 (15:22 +0200)]
lib/Moo.pm

index 27242db..00aa4ed 100644 (file)
@@ -34,7 +34,7 @@ sub import {
   };
   _install_coderef "${target}::with" => "Moo::with" => sub {
     require Moo::Role;
-    Moo::Role->apply_roles_to_package($target, $_[0]);
+    Moo::Role->apply_roles_to_package($target, @_);
     $class->_maybe_reset_handlemoose($target);
   };
   $MAKERS{$target} = {};