From: Jesse Luehrs Date: Sun, 24 Apr 2011 17:21:05 +0000 (-0500) Subject: allow immutable options to override file and line X-Git-Tag: 2.0100~194 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7087d3af3768638c22f23ad744b86a2062b94356;p=gitmo%2FMoose.git allow immutable options to override file and line --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 9fc62b3..eb50b0e 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -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;