Subject: | Deep recursion in lvalue test |
There's a deep recursion in the lvalue test between Contextual::Return
and Test::More v2 which uses Mouse. The code below demonstrates:
use Test::More 'no_plan';
use Contextual::Return;
{
sub foo : lvalue {
LVALUE {
ok 1;
}
}
}
for my $foo (foo) {
$foo = 99;
}
Near as I can figure, $foo = 99 is triggering LVALUE which calls ok()
which somehow triggers LVALUE deep inside Mouse
(lib/Test/Builder2/Mouse.pm 691 local $_ = $args[0];). I'm not sure how
it goes circular.
Any of the 2.00_x series of Test::More will trigger the problem.