Skip to content

ObjectCreationInitializer completion doesn't escape keywords #26560

@jcouv

Description

@jcouv
class C
{
   int @new { get; set; }
   void M()
   {
        _ = new C() { $$ }; // "@new" should be offered, but "new" is offered instead.
   }
}

Follow-up on comment made in #26474 about a related provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBugResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions