-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEConcept-Continuous ImprovementIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsBuilt-in analyzers, fixes, and refactoringsResolution-FixedThe bug has been fixed and/or the requested behavior has been implementedThe bug has been fixed and/or the requested behavior has been implemented
Milestone
Description
Brief description:
Inheriting from an abstract class that lacks a parameterless constructor results in a compile error, unless a constructor is added.
When hovering over the class name and hitting Ctrl+., the suggestion "Generate constructor " appears.
My suggestion is that this suggestion should also appear in the context menu for a Ctrl+. press anywhere in this class as long as a constructor is absent (same as when cursor is on class name).
Languages applicable:
Reproduced in C#, but might be applicable in VB too.
Code example that the analyzer should report:
The constructor suggestion should also appear in the following screenshot (initiated anywhere in the class scope:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEConcept-Continuous ImprovementIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsBuilt-in analyzers, fixes, and refactoringsResolution-FixedThe bug has been fixed and/or the requested behavior has been implementedThe bug has been fixed and/or the requested behavior has been implemented

