-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed as not planned
Labels
Area-IDEFeature RequestResolution-Not ReproducibleThe described behavior could not be reproduced by developersThe described behavior could not be reproduced by developers
Milestone
Description
Should we offer some code style options for making the type explicit or implicit in target-typed new?
For example:
C c = new();M(new())
Interesting scenarios:
(int, int) t = new();(the refactoring should be blocked to avoid producing illegal code, or made smarter to produce a tuple literal)- test existing fixers
UseImplicitType(for example, List list = new(); should never offer to make the declarationvar)
Relates to #28489 (target-typed new feature)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEFeature RequestResolution-Not ReproducibleThe described behavior could not be reproduced by developersThe described behavior could not be reproduced by developers