13 sub foo { 'Foo::foo(' . (inner() || '') . ')' };
26 augment 'foo' => sub {
27 die "infinite loop on Baz::foo" if $foo_call_counter++ > 1;
28 return 'Baz::foo and ' . Bar->new->foo;
38 When a subclass which augments foo(), calls a subclass which does not augment
39 foo(), there is a chance for some confusion. If Moose does not realize that
40 Bar does not augment foo(), because it is in the call flow of Baz which does,
41 then we may have an infinite loop.
46 'Foo::foo(Baz::foo and Foo::foo())',
47 '... got the right value for 1 augmented subclass calling non-augmented subclass');