Implement Castclass

This commit is contained in:
Smaug123
2025-06-27 11:41:41 +01:00
parent 5cf0789439
commit 1ebcd0b4f5
42 changed files with 856 additions and 132 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;
}
}