-
Notifications
You must be signed in to change notification settings - Fork 802
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
Compiler type inference regression #2730
Comments
Yes, it could be related to those optimizations. I'll dig again into it and find out why is not inferring |
@0x53A just FYI and based on my experience (with associated confusion) the tooling/tooltip will use a "larger part" of code in the inference while the compiler has somehow a more restricted way to unify the type. I've had a few tickets where the tooling would allow me completion on infered types (#1310 is one of those) but the compiler will refuse with same FS0072 error. |
Yes, that's almost always the case. It would be nice to make the compiler's type inference as smart. |
@gusty any update on this? No real rush, I'm just worried that a compiler regression has fallen by the wayside! @cartermp what's the deadline for VS 2017 Update 2 in terms of code submissions on this repo? If we can't get this regression fixed in a reasonable timeframe before then, would it make sense to revert the performance optimisations that caused this bug? This is stopping our office from upgrading to VS 2017. |
@saul I'd like to get to the bottom of this ASAP but right now am on holidays, this and next week. |
@saul Unfortunately, this isn't something we can get in for Update 2. We've already begun the insertion process, and we're in the current shipping process where we can only get something in if it's a critical bug which does something like crash VS. I don't think we can do anything here to revert the change between now and then. We could investigate something for Update 3 if a fix for the regression doesn't come in time. |
Apologies - I was referring to Update 3 :) Do we have a cut off for that release? |
This is the same root cause as #2416. I'm looking into trying to craft a fix that satisfies all the various tests. |
@saul Currently, no. I imagine that would be sometime in early June, though. Or perhaps mid-may. It's hard to say, since we can sometimes make a case for a fix (or set of fixes), and the size of our component is both small and less tangled than others, making the justification for taking a fix less difficult. I would assume, to be safe, that we have 1-1.5 months. |
In F# 4.0 (and prior), the above code worked fine. However in F# 4.1 there seems to have been some kind of regression:
This regression means we cannot use F# 4.1 (or VS 2017 due to IntelliSense errors) at work due to this regression in type inference that the code heavily depends upon.
/cc @dsyme
The text was updated successfully, but these errors were encountered: