Create class and role type constraints for Moose
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sat, 9 Feb 2013 17:50:08 +0000 (17:50 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sat, 9 Feb 2013 22:18:56 +0000 (22:18 +0000)
commit590745982a3ba20d42e45b9c1b4c40f72413f17a
treebcc859e980f21a446df25f4a05036ab193df72a0
parent977e618c6548ccdf5468e797f876f5dc9dd83b63
Create class and role type constraints for Moose

Moose implicitly creates type constraints for roles and classes, which
means that isa => 'SomeRole' accepts an object that does the role.  For
increased compatibility, create these constraints when injecting the
fake meta class.
lib/Moo/HandleMoose.pm
xt/implicit-moose-types.t [new file with mode: 0644]