Don't create anon classes, they're garbage collected or whatever
Shawn M Moore [Tue, 28 Apr 2009 08:52:29 +0000 (04:52 -0400)]
t/DynamicMoose/ProhibitPublicBuilders.run

index 0b17a8b..c38a3df 100644 (file)
@@ -143,7 +143,8 @@ has foo => (
 ## cut
 
 for (1 .. 5) {
-    Class::MOP::Class->create_anon_class(
+    Class::MOP::Class->create(
+        "Foo$_",
         attributes => [
             Class::MOP::Attribute->new(
                 name => "foo_$_",