-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Umbrella] Lambda parameter inference #11619
Comments
@CyrusNajmabadi I still owe you #7536, but I'm placing this on the back burner for the moment while I work on patterns. Please let me know if you come to know of any further candidates for this list. |
Moving this out to 2.1 for now as it feels like we've hit the major points here. Should we possibly just close this out? |
Pushing it to 2.1 makes sense. I'd prefer to keep this umbrella open as long as we have work to do. It keeps it on the burner (front or back) so we're aware that there is more to do. I'm fine with pushing it out every release (or two) until we think there isn't anything more we can do. |
I've added an issue that shows this problem in a different context, which I don't think is covered by the other linked issues: #16548 |
Removing #613 from the list because that isn't really a problem inferring the type of the parameter. It is a problem deciding which overload of the method (none of which work) to complain about in the error message. |
Adding #24654 to this list. |
There are a number of issues reported against Roslyn where we are unable to provide Intellisense for, seemingly simple, lamda parameters. In many cases the same scenario worked in pre-Roslyn days. The root issue here is the compiler is unable to infer a target method / delegate given the partial information provided when typing.
Fixing this requires some changes to overload resolution (danger) and can de-volve into heuristics at times vs. hard rules. As such we're going to look at all of these issues together and make a wholistic change to this part of the compiler. This issue represents that with the individual bugs being tracked below.
Slightly related to these issues and included on this list is poor syntax error recovery. See
The Roslyn VB compiler has similar limitations, though its overload resolution implementation is not modeled after the C# implementation. See
The text was updated successfully, but these errors were encountered: