Fix argument ordering bug (#58)

This commit is contained in:
Patrick Stevens
2025-06-20 12:40:45 +01:00
committed by GitHub
parent 71b12b5684
commit 5a7cf11a5f
11 changed files with 221 additions and 47 deletions

View File

@@ -0,0 +1,19 @@
public class Program
{
public struct TestStruct
{
public int Value;
public TestStruct(ref int x)
{
Value = x;
}
}
public static int Main(string[] args)
{
int localVar = 42;
TestStruct t = new TestStruct(ref localVar);
return t.Value;
}
}