This tests the successful handling of a next::method call from within an anonymous subroutine.