Skip to content

Conversation

@edgarfgp
Copy link
Contributor

@edgarfgp edgarfgp commented Oct 10, 2025

Description

Fixes #11873

Before

let f1 a a = ()
         ^
         Error: "'a' is bound twice in this pattern"
let f2 (a, b as c) c = ()
				   ^
				   Error: "'c' is bound twice in this pattern"

let f3 (a, b as c) a = ()
				   ^
				   No Error

After

let f1 a a = ()
         ^
         Error: "'a' is bound twice in this pattern"
let f2 (a, b as c) c = ()
				   ^
				   Error: "'c' is bound twice in this pattern"

let f3 (a, b as c) a = ()
				   ^
				   Error: "'a' is bound twice in this pattern"

Checklist

  • Test cases added
  • Release notes entry updated

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2025

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/11.0.0.md

@edgarfgp edgarfgp marked this pull request as ready for review October 12, 2025 06:04
@edgarfgp edgarfgp requested a review from a team as a code owner October 12, 2025 06:04
@edgarfgp
Copy link
Contributor Author

This is ready

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

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

3 participants