Skip to content

Object initializer completion doesn't trigger on target-typed new #46397

@jcouv

Description

@jcouv

I'm on latest VS 2019 preview, and I've noticed auto-complete popup doesn't work for new() class initializers. As in:

var color = new Color()
{
  // ctrl+space and suggestions are "r, g, b, a"
}

Color color = new()
{
  // ctrl+space has no response
}

Reported here (thanks @SirIntruder)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions