提交 c6f8a4e8 编写于 作者: S Sam Harwell

Fix compilation error preventing resolution of System.Func

上级 89849ea3
......@@ -864,7 +864,9 @@ public async Task FixAll()
public async Task FixAll2()
{
await TestInRegularAndScriptAsync(
@" partial struct MyClass
@" using System;
partial struct MyClass
{
private static Func<int, bool> {|FixAllInDocument:_test1|} = x => x > 0;
private static Func<int, bool> _test2 = x => x < 0;
......@@ -881,7 +883,9 @@ public async Task FixAll2()
}
partial struct MyClass { }",
@" partial struct MyClass
@" using System;
partial struct MyClass
{
private static readonly Func<int, bool> _test1 = x => x > 0;
private static readonly Func<int, bool> _test2 = x => x < 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册