Subject: | Type comparison not working on 5.8 |
See:
mmcleric@dhcp173-77-red:~$ perlbrew exec perl -MTypes::Standard=-types -e 'Bool eq Bool; print "ok\n"'
perl-5.16.1
==========
ok
perl-5.8.8
==========
Operation "eq": no method found,
left argument in overloaded package Type::Tiny,
right argument in overloaded package Type::Tiny at -e line 1.
PS: One case where this is an issue is when I use Type::Tiny with Moose and diamond role application, and Moose compares attribute definitions to see if there's a conflict (see is_same_as() method in Moose::Meta::Role::Attribute).