mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-10 16:28:41 +00:00
Fix argument ordering bug (#58)
This commit is contained in:
19
WoofWare.PawPrint.Test/sources/ArgumentOrdering.cs
Normal file
19
WoofWare.PawPrint.Test/sources/ArgumentOrdering.cs
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user