From 60e65ad7e3819f37042354d1ed2178d9f5f7e313 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 25 Jun 2009 09:41:25 -0500 Subject: if overriding new manually, still need to pass inline_constructor => 0 --- t/022-replaced-constructor.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/022-replaced-constructor.t b/t/022-replaced-constructor.t index c5498a5..c7b2e44 100644 --- a/t/022-replaced-constructor.t +++ b/t/022-replaced-constructor.t @@ -54,7 +54,8 @@ $method = Foo::Moose2->meta->get_method('new'); $foo = Foo::Moose2->new; ok($foo_constructed, 'custom constructor called'); $foo_constructed = 0; -Foo::Moose2->meta->make_immutable; +# still need to specify inline_constructor => 0 when overriding new manually +Foo::Moose2->meta->make_immutable(inline_constructor => 0); is($method, Foo::Moose2->meta->get_method('new'), 'make_immutable doesn\'t overwrite custom constructor'); $foo = Foo::Moose2->new; -- cgit v1.2.3-54-g00ecf