Add definition context to every accessor defined internally
[gitmo/Moose.git] / lib / Moose / Meta / Role / Application / ToClass.pm
index 2ec5531..704310b 100644 (file)
@@ -11,10 +11,12 @@ use base 'Moose::Meta::Role::Application';
 
 __PACKAGE__->meta->add_attribute('role' => (
     reader => 'role',
+    Class::MOP::_definition_context(),
 ));
 
 __PACKAGE__->meta->add_attribute('class' => (
     accessor => 'class',
+    Class::MOP::_definition_context(),
 ));
 
 sub apply {