提交 faef9a19 编写于 作者: A Alireza Habibi

Fix compilation error within the unit test

上级 5a2f2cd9
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Roslyn.Test.Utilities;
......@@ -14,7 +14,7 @@ public async Task FixAllInDocument1()
await TestInRegularAndScriptAsync(
@"class C
{
void M()
int M()
{
string a;
{|FixAllInDocument:var|} x = o as string;
......@@ -40,7 +40,7 @@ void M()
}",
@"class C
{
void M()
int M()
{
if (o is string x)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册