[Moose-commits] r7811 - Moose/trunk/lib/Moose/Meta/Method
lestrrat at code2.0beta.co.uk
lestrrat at code2.0beta.co.uk
Tue Mar 3 14:46:36 GMT 2009
Author: lestrrat
Date: 2009-03-03 06:46:36 -0800 (Tue, 03 Mar 2009)
New Revision: 7811
Modified:
Moose/trunk/lib/Moose/Meta/Method/Constructor.pm
Log:
additional warning
Modified: Moose/trunk/lib/Moose/Meta/Method/Constructor.pm
===================================================================
--- Moose/trunk/lib/Moose/Meta/Method/Constructor.pm 2009-03-02 08:02:05 UTC (rev 7810)
+++ Moose/trunk/lib/Moose/Meta/Method/Constructor.pm 2009-03-03 14:46:36 UTC (rev 7811)
@@ -81,7 +81,10 @@
if ( $constructor->body != $expected_class->can('new') ) {
my $warning
= "Not inlining a constructor for $class since it is not"
- . " inheriting the default $expected_class constructor\n";
+ . " inheriting the default $expected_class constructor\n"
+ . "If you are certain you don't need to inline your"
+ . " constructor, specify inline_constructor => 0 in your"
+ . " call to $class->meta->make_immutable\n";
$warning .= " (constructor has method modifiers which would be lost if it were inlined)\n"
if $constructor->isa('Class::MOP::Method::Wrapped');
More information about the Moose-commits
mailing list