Implement RFC fs-1025: Improve record type inference#1771
Implement RFC fs-1025: Improve record type inference#1771KevinRansom merged 1 commit intodotnet:masterfrom kurtschelfthout:fs-1025
Conversation
|
Adding a comment to perhaps kick off a build. This was all green before. |
|
@dotnet-bot test this please |
|
cool! side question: do we need to adjust error messages!? |
|
@forki: I don't think so, but I haven't reviewed the error messages. The nature of the change is that an ensuing check will now produce an error in fewer cases, because the type it picks during record type inference initially is a better choice. But the ensuing checks are still valid so don't think the error messages there need to be adjusted as a result of this change. There is a warning produced just above the changed code that is also still valid, for cases like I've noticed you added some code to suggest other record types when subsequent errors occur; perhaps you could argue that these may be updated to take the defined field count into account, but that might also be more confusing (i.e. excluding types that the programmer actually wanted to see). It's entirely possible I've missed something though! |
|
ok let's just assume things will work. And if we see samples where the error message could be better then we will fix them |
|
@kurtschelfthout Kevin |
Take 2. Rebased on master after all the recent changes.
RFC.