Skip to content

FS0049 isn't reported for short names #17878

@auduchinok

Description

@auduchinok

There's a warning reported for this code, saying that it may intent to use non-imported symbol, but defines a new local value instead:

match 1 with
| One -> ()

It's, however, not reported for shorter names, which may be the case for various literals, union cases, or active patterns:

match 1 with
| On -> ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompilerCompiler-related issues which don't belong to other categoriesBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions