未验证 提交 6fca15c0 编写于 作者: Y Youssef Victor 提交者: GitHub

Update CSharpTypeInferenceService.TypeInferrer.cs

上级 6023e201
......@@ -1230,7 +1230,6 @@ private IEnumerable<TypeInferenceInfo> InferTypeInForEachStatement(ForEachStatem
return SpecializedCollections.EmptyEnumerable<TypeInferenceInfo>();
}
var enumerableType = forEachStatementSyntax.AwaitKeyword == default
? this.Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)
: this.Compilation.GetTypeByMetadataName(typeof(IAsyncEnumerable<>).FullName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册