Skip to content

Name is bound multiple times is not reported in 'as' pattern #11873

@auduchinok

Description

@auduchinok
let f1 a a = ()
let f2 (a, b as c) c = ()
let f3 (a, b as c) a = ()

An error is expected in f3, but it's not reported:

Screenshot 2021-07-23 at 12 42 41

Metadata

Metadata

Assignees

Labels

Area-Compiler-PatternMatchingpattern compilation, active patterns, performance, codegenBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

Type

No fields configured for Bug.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions