Skip to content

Avoid calculating inferred delegate type unnecessarily in conversions and type inference #58106

@cston

Description

@cston

The inferred delegate type for a lambda expression or method group is used when calculating conversions and method type inference for overload resolution, but currently the delegate type is calculated in cases where it won't be used.

For nested lambda expressions, this can lead to significant overhead, particularly in error reporting where overload resolution considers methods that are obviously inapplicable (too few arguments for instance).

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions