-
Notifications
You must be signed in to change notification settings - Fork 832
Better anonymous record error reporting #15598
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
Conversation
…arfgp/fsharp into inaccurate-error-in-anonymous-record
|
@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 |
….com/edgarfgp/fsharp into inaccurate-error-in-anonymous-record
|
Addressed all the comments. Let me know if there is anything else that I need to cover. ? |
tests/FSharp.Compiler.ComponentTests/Conformance/Types/RecordTypes/AnonymousRecords.fs
Show resolved
Hide resolved
tests/FSharp.Compiler.ComponentTests/Conformance/Types/RecordTypes/AnonymousRecords.fs
Outdated
Show resolved
Hide resolved
….com/edgarfgp/fsharp into inaccurate-error-in-anonymous-record
Fixes #14814
Update: A new quick fix can be added based on the new error number