Skip to content

Move SourceMethodSymbol.IsRuntimeAsyncEnabledInMethod to MethodSymbol #82571

@333fred

Description

@333fred

As pointed out by Aleksey, this should move up so IsRuntimeAsyncEnabledIn behaves correctly for lambdas/local functions that are part of extension blocks; when an attribute is applied to them to disable runtime async, IsRuntimeAsyncEnabledIn will fail to detect this, and return bad data that causes a crash. Adjust CodeGenAsyncSpillTests.SpillAssignmentToThisStruct_02 and AsyncStateMachineAttribute_RuntimeAsync_ExtensionBlockMember* to hit this as well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions