Attempting to install Specio::Constraint::Simple, running into the following error:
Can't resolve method "???" overloading "&{}" in package "Specio::Constraint::Simple" at Specio::Constraint::Simple->new line 35.
Only related article I have found has been: https://rt.cpan.org/Public/Bug/Display.html?id=117975
Any suggestions would be appreciated.
Thank you
This is caused by a bug in older versions of Role::Tiny that was fixed in version 1.003003:
- overloads specified as method names rather than subrefs are now applied properly
Upgrading Role::Tiny should fix it and allow Specio::Constraint::Simple to be installed normally.
Actually, you don't even need to do that manually: Version 0.26 of Specio now requires at least version 1.003003 of Role::Tiny. Any future attempt to install Specio will upgrade Role::Tiny automatically (if required).