Navigation: X# 文档 > X# 编译器错误和警告
Error XS8420
The body of an async-iterator method must contain a 'yield' statement. Consider removing 'async' from the method declaration or adding a 'yield' statement.