Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong IL generated for Local init #35

Open
pjbgf opened this issue Jun 23, 2017 · 0 comments
Open

Wrong IL generated for Local init #35

pjbgf opened this issue Jun 23, 2017 · 0 comments
Labels
Milestone

Comments

@pjbgf
Copy link
Owner

pjbgf commented Jun 23, 2017

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)
@pjbgf pjbgf added the bug label Jun 23, 2017
@pjbgf pjbgf added this to the 1.0 milestone Jun 23, 2017
pjbgf added a commit that referenced this issue Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant