Skip to content

Conversation

evgTSV
Copy link
Contributor

@evgTSV evgTSV commented Oct 3, 2025

Enhance the F# compiler’s type checker to correctly support and validate nested field updates (with depth > 1) for both anonymous and records. Add tests to cover these scenarios, and perform minor refactoring.

Fixes #18940
Fixes #18062

Copy link
Contributor

github-actions bot commented Oct 3, 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

@evgTSV evgTSV requested a review from auduchinok October 4, 2025 12:11
@edgarfgp
Copy link
Contributor

edgarfgp commented Oct 5, 2025

I think this might also fix #18062 ?

@evgTSV
Copy link
Contributor Author

evgTSV commented Oct 5, 2025

Yes, this fixes that issue too

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Oct 13, 2025
@T-Gro T-Gro enabled auto-merge (squash) October 13, 2025 08:53
auto-merge was automatically disabled October 14, 2025 14:57

Head branch was pushed to by a user without write access

@evgTSV evgTSV requested review from T-Gro and vzarytovskii October 14, 2025 14:57
@edgarfgp
Copy link
Contributor

/run fantomas

Copy link
Contributor

🔧 CLI Command Report

  • Command: /run fantomas
  • Outcome: success

✅ Patch applied:
- Files changed: 2
- Lines changed: 43

@T-Gro T-Gro merged commit 1ff7cb1 into dotnet:main Oct 20, 2025
38 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Oct 20, 2025
@evgTSV evgTSV deleted the fix-nested-fields-copy-update-rec branch October 20, 2025 10:47
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.

Nested field update doesn't type-check properly Copy and update record expression doesn't compile when the record comes from a function

6 participants