Adjusted default 'isa' typeconstraint construction to check if the
authorwu-lee <mouse.git.wu-lee@noodlefactory.co.uk>
Wed, 1 Apr 2009 17:23:30 +0000 (18:23 +0100)
committerwu-lee <mouse.git.wu-lee@noodlefactory.co.uk>
Fri, 3 Apr 2009 18:00:58 +0000 (19:00 +0100)
commit5c5a61e0daea184cff679a815d6fc4cdbe08bc33
tree46f15d2fa1d40ec9704e7386d8f3995b4d81d666
parent766534c221078e4e10d66fcc2aca0563aad54f4e
Adjusted default 'isa' typeconstraint construction to check if the
specified type name is a known role, and constrain with 'does' instead
of 'isa' if it is.  This brings Mouse in line with how Moose behaves
for this case.  Testcase added to t/025-more-isa.t.
lib/Mouse/Util/TypeConstraints.pm
t/025-more-isa.t [changed mode: 0644->0755]