Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8151
The return expression must be of type '{0}' because this method returns by reference