mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +02:00
56 lines
No EOL
593 B
Beef
56 lines
No EOL
593 B
Beef
namespace LibC
|
|
{
|
|
class LibC0
|
|
{
|
|
public static int GetOverload0<T>() where T : var
|
|
{
|
|
T val = default;
|
|
return Overload0(val);
|
|
}
|
|
}
|
|
}
|
|
|
|
extension LibClassA
|
|
{
|
|
public int32 mB = GetVal(13, 1000, "LibC.LibClassA.mB");
|
|
|
|
public static this()
|
|
{
|
|
sMagic += 1000;
|
|
}
|
|
|
|
public ~this()
|
|
{
|
|
sMagic += 2000;
|
|
}
|
|
|
|
public this(int8 i8)
|
|
{
|
|
PrintF("LibC.LibClassA()\n");
|
|
mB += 30000;
|
|
}
|
|
|
|
public int LibC_GetB()
|
|
{
|
|
return mB;
|
|
}
|
|
}
|
|
|
|
static
|
|
{
|
|
public static int Overload0(int32 a)
|
|
{
|
|
return 3;
|
|
}
|
|
}
|
|
|
|
namespace LibSpace
|
|
{
|
|
static
|
|
{
|
|
public static int MethodA()
|
|
{
|
|
return 100;
|
|
}
|
|
}
|
|
} |