W2011 Safety Warnings

Safety

named return value is declared in the signature but no matching variable exists in the function body

When this occurs

This error is triggered when: named return value is declared in the signature but no matching variable exists in the function body

Example error message

warning[W2011]: named return value is declared in the signature but no matching variable exists in the function body

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.