-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix for extension methods: Treat System.Private.CoreLib as a system lib for extension method search #17799
Conversation
❗ Release notes required
|
/backport to release/dev17.11 |
This reverts commit dca40ae.
/backport to release/dev17.11 |
Started backporting to release/dev17.11: https://github.com/dotnet/fsharp/actions/runs/11057164787 |
@T-Gro backporting to release/dev17.11 failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Treat System.Private.CoreLib as a system lib for extension method search
Applying: usessdkrefs is not a valid option for desktop compiler
Applying: notes
Using index info to reconstruct a base tree...
A docs/release-notes/.FSharp.Compiler.Service/9.0.200.md
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): docs/release-notes/.FSharp.Compiler.Service/9.0.200.md deleted in HEAD and modified in notes. Version notes of docs/release-notes/.FSharp.Compiler.Service/9.0.200.md left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0003 notes
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@T-Gro an error occurred while backporting to release/dev17.11, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
…m lib for extension method search (dotnet#17799) * Treat System.Private.CoreLib as a system lib for extension method search * usessdkrefs is not a valid option for desktop compiler * notes * Revert "notes" This reverts commit dca40ae. * Release notes back * get rid of looksLikeSystemAssembly in ilread, it is not needed --------- Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>
Addresses #17793
Before it, extension method resolution did not work for system assemblies if the compilation was NOT using reference assemblies.
The usesdkrefs- is a switch which dotnetinteractive uses.
Without this switch, the problem does not reproduce.