1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Retain argument cascade type

This commit is contained in:
Brian Fiete 2022-06-06 11:27:07 -07:00
parent 91a4af93af
commit 25bde9e566
3 changed files with 15 additions and 1 deletions

View file

@ -154,6 +154,11 @@ namespace Tests
scPtr.mData[0] += 100;
}
static void ObjMethod(Object obj)
{
}
[Test]
public static void TestBasics()
{
@ -198,6 +203,9 @@ namespace Tests
function [CallingConvention(.Cdecl)] void (StructC) scFunc2 = => ModifyC2;
scFunc2(sc);
Test.Assert(sc.mData[0] == 323);
var v = ObjMethod(.. scope String());
Test.Assert(v.GetType() == typeof(String));
}
}
}