Skip to content

Parameter names in target-typed new() expressions are missing among completions in compound assignment statements #73894

@Peter-Juhasz

Description

@Peter-Juhasz

Version Used: VS 17.11.0 P 1.1

Steps to Reproduce:

List<int> list = null;
list ??= new($$);
Rogzites.2024-06-07.194355.mp4

Other observations:

  • assignment expressions (list = new($$)) seem to work well
  • but other compound assignment statements (list += new($$), -=, ...) reproduce the issue too
  • method invocations seem to work as well too (list += Math.Abs($$))

Diagnostic Id: N/A

Expected Behavior:
Parameter names are listed.

Actual Behavior:
Parameter names are missing.

Metadata

Metadata

Assignees

Labels

Area-CompilersBughelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

Type

No type

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions