Skip to content

Conversation

@monomod
Copy link
Contributor

@monomod monomod bot commented Jun 8, 2025

Test for #237

This test verifies that ILCursor.EmitBr() does not create a self-referencing branch when the instruction passed is ILCursor.Next.

The test creates a simple dynamic method and checks that:

  • At least two instructions are generated
  • The branch instruction does not reference itself as its target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants