提交 ac6e7c90 编写于 作者: G Gen Lu

Minor change in tests

上级 22a15c0b
......@@ -1673,11 +1673,16 @@ public void M2()
}
private class IndexerAccessArgumentVerifier : OperationWalker
{
public static void Verify(IOperation operation)
{
public static readonly IndexerAccessArgumentVerifier Instance = new IndexerAccessArgumentVerifier();
private IndexerAccessArgumentVerifier()
{
var walker = new IndexerAccessArgumentVerifier();
walker.Visit(operation);
}
public static void Verify(IOperation operation)
{
Instance.Visit(operation);
}
public override void VisitIndexedPropertyReferenceExpression(IIndexedPropertyReferenceExpression operation)
......@@ -1693,7 +1698,7 @@ public override void VisitIndexedPropertyReferenceExpression(IIndexedPropertyRef
{
if (!argument.IsInvalid)
{
Assert.True(argument.Parameter.ContainingSymbol == indexerSymbol);
Assert.Same(indexerSymbol, argument.Parameter.ContainingSymbol);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册