Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS4029
Cannot return an expression of type 'void'