提交 c24014b7 编写于 作者: A Alireza Habibi 提交者: Andy Gocke

Add missing call to LookupResult.Free (#20512)

上级 1c667195
......@@ -1313,6 +1313,7 @@ private BoundExpression BindDefaultExpression(DefaultExpressionSyntax node, Diag
{
if (node.IsKind(SyntaxKind.IdentifierName) && FallBackOnDiscard((IdentifierNameSyntax)node, diagnostics))
{
lookupResult.Free();
return new BoundDiscardExpression(node, type: null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册