Subject: | No warning if you don't extend HTML::FormHander |
Take the following code:
package MetaBrainz::Server::Form::Donation;
use Moose;
use HTML::FormHandler::Moose;
has_field name => (
type => 'Text',
);
1;
This looks fine, but it doesn't actually work because it doesn't extend
'HTML::FormHandler'. However, everything compiled and ran just fine,
though $form->field('name') will return undef.
It would be nicer if HTML::FormHandler could somewhere notice this
usage, and either warn or die.