Skip to content

Conversation

@auduchinok
Copy link
Member

@auduchinok auduchinok commented Oct 28, 2025

Adds recovery when it's not possible to unify the method type with the expected type:

if true then
    "".ToString
Screenshot 2025-10-28 at 19 20 41

The error would lead to the method symbol not being reported, so features like 'Go to Declaration' or getting the tooltip would not work.

# Conflicts:
#	tests/FSharp.Compiler.Service.Tests/TypeChecker/TypeCheckerRecoveryTests.fs
@github-actions
Copy link
Contributor

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

@auduchinok auduchinok changed the title Type checker: recover function type unification in method checkin Type checker: recover function type unification in method checking Oct 28, 2025
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Oct 29, 2025
@auduchinok
Copy link
Member Author

This is ready 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants