Skip to content

Resumable state machines: fix #19296#19297

Draft
majocha wants to merge 6 commits intodotnet:mainfrom
majocha:resumable-fix-19296
Draft

Resumable state machines: fix #19296#19297
majocha wants to merge 6 commits intodotnet:mainfrom
majocha:resumable-fix-19296

Conversation

@majocha
Copy link
Contributor

@majocha majocha commented Feb 16, 2026

Fixes #19296

let's see if it passes

@github-actions
Copy link
Contributor

❗ Release notes required

@majocha,

Caution

No release notes found for the changed paths (see table below).

Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format.

The following format is recommended for this repository:

* <Informative description>. ([PR #XXXXX](https://github.com/dotnet/fsharp/pull/XXXXX))

See examples in the files, listed in the table below or in th full documentation at https://fsharp.github.io/fsharp-compiler-docs/release-notes/About.html.

If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request.

You can open this PR in browser to add release notes: open in github.dev

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/10.0.300.md No release notes found or release notes format is not correct

Improve reduction of resumable code in state machines

Enhance application reduction in state machine lowering for F# computation expressions by tracking let-bound resumable code in the environment and resolving references during reduction. This enables correct handling of optimizer-generated continuations and deeper reduction of nested applications. Also, update test comments to reflect resolved state machine compilation issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

State machines: low-level resumable code not always expanded correctly, without warning

1 participant