projects
/
gitmo/Moo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
first cut at extension tests
[gitmo/Moo.git]
/
lib
/
Moo
/
Role.pm
diff --git
a/lib/Moo/Role.pm
b/lib/Moo/Role.pm
index
a8884de
..
fb82079
100644
(file)
--- a/
lib/Moo/Role.pm
+++ b/
lib/Moo/Role.pm
@@
-117,7
+117,7
@@
sub create_class_with_roles {
$Moo::MAKERS{$new_name} = {};
$me->_handle_constructor(
- $new_name, [ map @{$INFO{$_}{attributes}||{}}, @roles ], $superclass
+ $new_name, [ map @{$INFO{$_}{attributes}||[]}, @roles ], $superclass
);
return $new_name;