Skip to content

Wrong IL generated for Local init  #35

Description

@pjbgf

Source code:

public void UsingTryCatch(int parameter)
{
      try
      {
           Console.WriteLine(parameter);
      }
      catch (Exception e)
      {
          Console.WriteLine(e);
          throw;
      }
}

Expected IL

.locals init (class [System.Runtime]System.Exception V_0)

Actual IL

.locals init([System.Runtime]System.Exception V_0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions