allow immutable options to override file and line
Jesse Luehrs [Sun, 24 Apr 2011 17:21:05 +0000 (12:21 -0500)]
lib/Class/MOP/Class.pm

index 9fc62b3..eb50b0e 100644 (file)
@@ -1259,9 +1259,9 @@ sub make_immutable {
     my ($file, $line) = (caller)[1..2];
     if ( $self->is_mutable ) {
         $self->_initialize_immutable(
-            $self->_immutable_options(@args),
             file => $file,
             line => $line,
+            $self->_immutable_options(@args),
         );
         $self->_rebless_as_immutable(@args);
         return $self;