提交 fa1e83a1 编写于 作者: Y Youssef Victor

Fix

上级 4278c30d
......@@ -9341,7 +9341,7 @@ internal MyException(int error, int offset, string message) : base(message)
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)]
public async Task TestMissingOfferParameterInTopLevel()
{
await TestMissingInRegularAndScriptAsync("[|Console|].WriteLine();");
await TestMissingAsync("[|Console|].WriteLine();", new TestParameters(Options.Regular));
}
}
}
......@@ -136,8 +136,7 @@ private partial class State
internal bool CanGeneratePropertyOrField()
{
return ContainingType is { IsImplicitlyDeclared: false, Name: not WellKnownMemberNames.TopLevelStatementsEntryPointTypeName }
|| ContainingType.IsScriptClass;
return ContainingType is { IsImplicitClass: false, Name: not WellKnownMemberNames.TopLevelStatementsEntryPointTypeName };
}
internal bool CanGenerateLocal()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册