Better error reporting for let bindings.
Description
Improve error reporting for Binding checking code bindings including let bindings, let-rec bindings, member bindings and object-expression bindings
Fixes # (issue, if applicable)
Checklist
- [x] Test cases added
- [x] Release notes entry updated
:heavy_exclamation_mark: Release notes required
:white_check_mark: Found changes and release notes in following paths:
Change path Release notes path Description src/Compilerdocs/release-notes/.FSharp.Compiler.Service/9.0.100.md
@psfinaki Can I get some help updating the last failing window test related please ?. Have tried for couple days and can not make any progress
@edgarfgp alright, will take a look shortly.
@edgarfgp something popped up today, we're on it with @vzarytovskii, stay tuned.
Hey @edgarfgp I pushed the updates to this branch. AFAIU this PR is supposed to adjust some error ranges hence some baselines need updates.
Working with baselines is confusing, but these ones at least can be handled with normal dotnet means. As in, to find the problem, I built the whole thing, navigated to tests/fsharp and executed tests like dotnet test --filter "Name~neg10". This showed me the difference between expectations and reality in a more or less readable manner (more readable than in ADO for sure).
Note neg45 needed the Release build. As for quotesDebugInfo, this appears to be written in yet different way (hah), but once I executed it locally there were some files emitted (test6.actual, test9.actual), again showing the new results which I could compare with hardcoded string baselines in tests.
Now you decide if this is what you want :)
I don't know how ready your PR is, I skimmed thru the impl tho, I believe these bsl changes might be reasonable with what you change. Yet, given that the updates are quite diverse, please update the PR description with some motivation and impl details 😎
@psfinaki Thanks a lot for the help. You are a Legend. Will be updating the PR description soon to cover and explain all the goodness here :)
@psfinaki @T-Gro @abonie please review, we will have to either merge it soon, or wait until after 9.0.100 release, since SDK freeze is soon (in couple of weeks), and we will need to merge it and wait for translations.