Skip to content

Code fix does not preserve semantics #2

@sharwell

Description

@sharwell

Currently the code fix for MissingDefaultValue does not ensure that semantics are preserved when copying the explicit default value expression from the source definition to the target method. This does not affect literals (such as x = null, t = default(int?), or y = "Stuff", but it would affect cases where the default value is an unqualified reference to a constant value defined in the current class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions