2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
16 sub foo { 'Foo::foo(' . (inner() || '') . ')' };
29 augment 'foo' => sub {
30 die "infinite loop on Baz::foo" if $foo_call_counter++ > 1;
31 return 'Baz::foo and ' . Bar->new->foo;
41 When a subclass which augments foo(), calls a subclass which does not augment
42 foo(), there is a chance for some confusion. If Mouse does not realize that
43 Bar does not augment foo(), because it is in the call flow of Baz which does,
44 then we may have an infinite loop.
49 'Foo::foo(Baz::foo and Foo::foo())',
50 '... got the right value for 1 augmented subclass calling non-augmented subclass');