class X::ControlFlow::Return is X::ControlFlow { }

Thrown when a return is called from outside a routine.

return;
CATCH { default { put .^name, ': ', .Str } };
# OUTPUT: «X::ControlFlow::Return: Attempt to return outside of any Routine␤»