Skip to content

Cache delegate for non-capturing local functions when caching delegates for static methods #19431

@pawchen

Description

@pawchen

This issue is created in respond to #6642 (comment)

Currently #6642 avoids local functions completely, as local functions all appears IsStatic but they could capture things. When it makes into a feature branch, consider support them like non-capturing lambda.

Also need to consider what to do when the delegate type involves generic parameters from any local functions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions