Skip to content

Fix FS1110 in task { let! } when generic IL extension is in scope - #19938

Merged
abonie merged 3 commits into
mainfrom
fix/issue-19936
Jun 24, 2026
Merged

Fix FS1110 in task { let! } when generic IL extension is in scope#19938
abonie merged 3 commits into
mainfrom
fix/issue-19936

Conversation

@T-Gro

Copy link
Copy Markdown
Member

Fixes#19936

task { let! x = ... } (and other CEs) raised an internal compiler
error FS1110 when a generic IL extension method whose this-parameter
is a method-level type variable was in scope (e.g. open ReactiveUI).
Regression from #19536.

@github-actions

Copy link
Copy Markdown
Contributor

❗ Release notes required

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


✅ Found changes and release notes in following paths:

Warning

No PR link found in some release notes, please consider adding it.

Change pathRelease notes pathDescription
src/Compilerdocs/release-notes/.FSharp.Compiler.Service/11.0.100.mdNo current pull request URL (#19938) found, please consider adding it

@github-actionsgithub-actionsBot added the AI-Tooling-Check-Bypassed Tooling check: non-fork PR, not diff-analyzed label Jun 12, 2026
Copilotand others added 3 commits June 15, 2026 13:49
…n scope (#19936)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…9936)
- Move IsExtensionMethCompatibleWithTy above ExtensionMethInfosOfTypeInScope.
- Pass FormalMethodInst (not []) to GetObjArgTypes so IL method-typar this-args
import successfully. Wrap in narrow try/with that rethrows
OperationCanceledException for cancellable IDE paths.
- Confine the AtMostOneResult short-circuit so dangling unindexed extensions
only mask hierarchy-indexed candidates when at least one is compatible with
the target type. AllResults branch preserved byte-identically.
Regression from PR #19536 (issue #19349 fix).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…19936)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro
T-Gro requested a review from abonieJune 15, 2026 12:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Tooling-Check-BypassedTooling check: non-fork PR, not diff-analyzed

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

FS1110 internal compiler error: task { let! } + open ReactiveUI on .NET SDK 10.0.301

2 participants

@T-Gro@abonie