dotnet / dotnet/roslyn

EnC: update MoveNext of deleted async lambda to throw

Open
#72,887 0 comments 0 reactions 0 assignees View on GitHub
Interactive-EnC
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

If we don't the state machine can get executed even though the code has been deleted, which might be confusing for the user.

Tracks skipped test EditAndContinueStateMachineTests.AsyncLambda_Delete

Contributor guide

Open the contributing guide

Research direction

Search the repository for EditAndContinueStateMachineTests.AsyncLambda_Delete and inspect the skipped test and its surrounding expectations. Trace the async-lambda state-machine MoveNext handling for deleted code; done means the test is enabled and passes with the deleted state machine throwing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.