Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0127
Since '{0}' returns void, a return keyword must not be followed by an object expression