Skip to content

Unused binding warning isn't reported for recursive binding in a type #13849

@auduchinok

Description

@auduchinok

Consider the following type declaration:

type T() =
    let rec f x = ()
    and g x = ()

    do g ()

Earlier FCS versions would report f as unused with --warnon:1182 flag present, but the current main doesn't report it anymore.

@psfinaki Could it be somehow related to #13429?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.good first issuehelp wanted

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions