in reply to Introspection of Moose/Mouse attributes fails to find native trait with `does`
Just setting the "isa" to "Bool" is not doing what you think it is doing. You want to actually add the "Bool" Trait like so
At which point $attr->does("Moose::Meta::Attribute::Native::Trait::Bool") will return true.package MyCow; use Moose; # or Mouse has "guernsey" => traits => [ 'Bool' ], is => "rw", isa => "Bool", ;
-stvn
In Section
Seekers of Perl Wisdom