Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Test autovivification of attributes when using methods that should be read only #153
Test case for https://rt.cpan.org/Public/Bug/Display.html?id=123385
I think that delegated methods should work on undefined array attributes, returning undef, or 0 for count (just like Hash)
We'd expect it to fail. It's testing that Moose doesn't do something that it currently does.
That said, I think there was agreement that the right fix is to have Moose throw an exception when an attr w/ native traits is not yet populated when the delegation is called. That matches the behavior of other delegations.