Fix warnings about unknown attribute parameters on metaclass inflation
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sun, 21 Apr 2013 15:23:18 +0000 (16:23 +0100)
committerMatt S Trout <mst@shadowcat.co.uk>
Sat, 4 May 2013 20:21:20 +0000 (20:21 +0000)
commitb6ab68373c2cde43fa4c53494e09624ea050e545
treef8284a05ee2be2c77fb1c0bc4441c9a437333e49
parent2d594586cd91096e01134cd473d610366a87bcc6
Fix warnings about unknown attribute parameters on metaclass inflation

Moo::Role::_inhale_if_moose inhales the entire guts of the attribute
metaobject, so make sure we pass the correct constructor args for the
attribute metaclass.
Changes
lib/Moo/HandleMoose.pm
xt/moo-does-moose-role.t
xt/moose-override-attribute-with-plus-syntax.t