Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8150
By-value returns may only be used in methods that return by value