Skip to content

EnC: editing around try-catch block in top-level local function does not work #61415

@tmat

Description

@tmat

Version Used:
Version 17.3.0 Preview 1.0 [32421.362.main]

Steps to Reproduce:

F();

void F()
{
    // System.Console.WriteLine(1);
    try
    {
        G();
    }
    catch
    {
    }
}

void G()
{ // breakpoint here
}

Place breakpoint as indicated.
Once hit, uncomment // System.Console.WriteLine(1); and apply changes.

Expected Behavior:
Change is applied.

Actual Behavior:

Rude edits reported:

ENC0060: Adding try block around an active statement requires restarting the application.
ENC0061 Deleting try block around an active statement requires restarting the application.

image

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