namespace::autoclean, unlike namespace::clean, removes all imported functions regardless of if they were imported before or after it is used.
I don't really know why test 5 worked, but Test::More does have special handling for overloaded objects. I'm assuming it is some odd interaction in there.
In reply to Re^3: MooseX::Declare and overload
by Haarg
in thread MooseX::Declare and overload
by FunkyMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |