Skip to content

Parameters are not listed among completions for target-typed new expression inside return statement #76501

Open
@Peter-Juhasz

Description

Version Used: VS 17.13 P2.1

Steps to Reproduce:

20241218-2002-09.9434840.mp4
static A Do()
{
    return new(Id$$: "asd", Count$$: 3);
}

public class A(string Id, int Count);

Expected Behavior:
Parameters are listed among completion items.

Actual Behavior:
Parameters for named arguments are not listed among completion items.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Area-CompilersFeature - Target-Typed New`new (args)` gets the created type inferred from contextuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions