in reply to Re^2: Problem generating builder functions with Moose for inherited objects
in thread Problem generating builder functions with Moose for inherited objects

You have the Moose::Meta::Attribute object already in $build_attribute in the outer loop, so you can do your test simply on that one:
$result = $build_attribute->type_constraint->is_a_type_of('ArrayRef') +? 'it's an ArrayRef' :'not an ArrayRef';
I just tried this in one of my Moose classes and it works for me that way.
  • Comment on Re^3: Problem generating builder functions with Moose for inherited objects
  • Download Code