Skip to content
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

Better anonymous record error reporting #15598

Merged

Conversation

edgarfgp
Copy link
Contributor

@edgarfgp edgarfgp commented Jul 13, 2023

Fixes #14814

Update: A new quick fix can be added based on the new error number

src/Compiler/Checking/NameResolution.fs Outdated Show resolved Hide resolved
src/Compiler/FSComp.txt Outdated Show resolved Hide resolved
src/Compiler/Checking/NameResolution.fs Outdated Show resolved Hide resolved
src/Compiler/FSComp.txt Outdated Show resolved Hide resolved
@edgarfgp edgarfgp closed this Jul 21, 2023
@edgarfgp edgarfgp reopened this Jul 21, 2023
@psfinaki
Copy link
Member

@edgarfgp this is awesome - thanks.

Yeah I am not a big anon records user so cannot really say if a dev would really expect this fix for the case it's working for currently. And indeed triggering the code fix evaluation for every 0039 is kind of costly where the new diag is a more targeted and appropriate application.

That said, I don't mind keeping it for both diags for now until somebody complains about it's speed or uselessness. After all, somebody created it in its current shape so was motivated :D

@edgarfgp edgarfgp requested a review from auduchinok July 25, 2023 15:51
tests/service/Symbols.fs Outdated Show resolved Hide resolved
@edgarfgp edgarfgp requested a review from auduchinok July 25, 2023 17:21
@edgarfgp
Copy link
Contributor Author

edgarfgp commented Jul 26, 2023

Addressed all the comments. Let me know if there is anything else that I need to cover. ?

@vzarytovskii vzarytovskii merged commit fa59c22 into dotnet:main Jul 28, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Inaccurate error in anonymous record copy-and-update
6 participants