What the heck, make the new immutable subclass immutable itself. All
Dave Rolsky [Tue, 30 Jun 2009 19:49:08 +0000 (14:49 -0500)]
tests pass, and it just feels nice.

lib/Class/MOP/Class.pm

index 52cd74c..6a464c8 100644 (file)
@@ -1115,6 +1115,8 @@ sub _immutable_metaclass {
         }
     }
 
+    $meta->make_immutable;
+
     return $class_name;
 }