diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-25 09:41:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-25 09:41:25 -0500 |
commit | 60e65ad7e3819f37042354d1ed2178d9f5f7e313 (patch) | |
tree | abec56ed7f6a77ae82791f2779ffaece0bf85708 /t | |
parent | ec987f518b6bbdb68129b92742e7d6727c3135c4 (diff) | |
download | moosex-nonmoose-60e65ad7e3819f37042354d1ed2178d9f5f7e313.tar.gz moosex-nonmoose-60e65ad7e3819f37042354d1ed2178d9f5f7e313.zip |
if overriding new manually, still need to pass inline_constructor => 0
Diffstat (limited to 't')
-rw-r--r-- | t/022-replaced-constructor.t | 3 |
1 files changed, 2 insertions, 1 deletions
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; |