-
Notifications
You must be signed in to change notification settings - Fork 832
Propose to use :> instead of :?> - fixes #1127 #1149
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
Conversation
src/fsharp/ConstraintSolver.fs
Outdated
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.
I believe we want to undo the results of this new "solve" operation (regardless of whether it succeeds or not, using CollectThenUndo). We don't want the results of inference to be altered by giving better errors.
41c7a66 to
f15b608
Compare
9e37861 to
9691a36
Compare
|
Just as a side question - why does the compiler give a warning only to then immediately afterwards give an error? |
|
I think this is an artifact of using fsi. @dsyme can you say more?
|
|
Ah yes. It doesn't occur through e.g. VSCode. |
39b9392 to
9bcbb8a
Compare
|
Nice. The
I think the error message change is only suitable for the last case. So that means you should pass in the Cheers! |
7df36f7 to
60b954f
Compare
|
@dsyme good catch ;-) will add corresponding tests and fix that as well. |
24b7911 to
e6a6ada
Compare
|
tests added for all 4 cases. |
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.
Seems we always gave the error twice. Probably because it is so important to get your types right.
Anyways, I fixed this as well.
39df141 to
e1db89c
Compare
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.
this is a slightly different version of the hint. It#s not talking about operators
|
OK, this looks good to go to me, assuming appveyor CI passes (I know Jenkins is having trouble right now). I've removed the "WIP" . |
10696e3 to
a12b530
Compare
|
I rebased this. |
91d304b to
1dfdb7a
Compare
|
I think this is ready and the appveyor error is unrelated |
|
it's green and ready |



This is early work for #1127 and intended for first feedback round: