Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Peter-Juhasz opened this issue Dec 18, 2024 · 1 comment
Labels
Area-Compilers Feature - Target-Typed New `new (args)` gets the created type inferred from context untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@Peter-Juhasz
Copy link

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 18, 2024
@CyrusNajmabadi
Copy link
Member

Same issue as #76499. Moving to compiler.

@jcouv jcouv added the Feature - Target-Typed New `new (args)` gets the created type inferred from context label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - Target-Typed New `new (args)` gets the created type inferred from context untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

3 participants