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:
parent
91a4af93af
commit
25bde9e566
3 changed files with 15 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue