mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
fixed thiscall compile crash now hopefully
This commit is contained in:
parent
8975b30e0f
commit
10c8196352
2 changed files with 18 additions and 3 deletions
|
@ -130,6 +130,22 @@ namespace Tests
|
|||
}
|
||||
}
|
||||
|
||||
[CRepr]
|
||||
struct StructCRepr
|
||||
{
|
||||
public int32 something = 1;
|
||||
|
||||
bool Run() => something == 1;
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
StructCRepr sc = .();
|
||||
function bool(StructCRepr this) func = => Run;
|
||||
|
||||
Test.Assert(func(sc));
|
||||
}
|
||||
}
|
||||
|
||||
public static int UseFunc0<T>(function int (T this, float f) func, T a, float b)
|
||||
{
|
||||
return func(a, b);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue