Skip to content

Unused value analysis on unused this value can suggest uncompilable code #5419

@cartermp

Description

@cartermp

Given the following:

type C() as this = class end

this will be marked as an unused value:

screen shot 2018-07-29 at 09 55 50

But the second option will result in code that will not compile:

screen shot 2018-07-29 at 09 56 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-CodeFixesCode fixes associated with diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.good first issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions