Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1997
Since '{0}' is an async method that returns 'Task', a return keyword must not be followed by an object expression. Did you intend to return 'Task'?