-
Notifications
You must be signed in to change notification settings - Fork 793
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
Wrong type is reported in type mismatch error #13347
Wrong type is reported in type mismatch error #13347
Conversation
@edgarfgp thanks for looking into this! Would you mind adding "negtests" similar to those defined in this file Lines 3374 to 3405 in 4be3bb5
Those test make sure the type checker error match desired output (that is error message with correct type mismatch info). |
tests/FSharp.Compiler.ComponentTests/ErrorMessages/TypeMismatchTests.fs
Outdated
Show resolved
Hide resolved
dd3c2d8
to
674cb0f
Compare
Unfortunately I do not have the enough knowledge regarding error recovering to fix It is 50 % done IMO . Would be awesome if someone can take this one and finished it. I think would be a good improvement to have :) . Thanks |
674cb0f
to
f0274f6
Compare
…b.com:edgarfgp/fsharp into wrong-type-is-reported-in-type-mismatch-error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0101 This looks very nice!
tests/FSharp.Compiler.ComponentTests/ErrorMessages/TypeMismatchTests.fs
Outdated
Show resolved
Hide resolved
tests/FSharp.Compiler.ComponentTests/ErrorMessages/TypeMismatchTests.fs
Outdated
Show resolved
Hide resolved
tests/FSharp.Compiler.ComponentTests/ErrorMessages/TypeMismatchTests.fs
Outdated
Show resolved
Hide resolved
…ted-in-type-mismatch-error
…ted-in-type-mismatch-error
Gave this another go with @dsyme and I think it's now ready :) |
@0101 This looks really good :) . Any thing pending to be ready for merge ? |
Really good work!!! And so glad to see us making these core improvements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks really great, the errors are much better now, thanks!
Thanks for making this happen . I have learn so much my reviewing this code :) |
Fixes #13192 .