2019-08-23 11:56:54 -07:00
|
|
|
namespace LibC
|
|
|
|
{
|
|
|
|
class LibC0
|
|
|
|
{
|
2020-07-01 12:06:51 -07:00
|
|
|
public static int GetOverload0<T>() where T : var
|
|
|
|
{
|
|
|
|
T val = default;
|
|
|
|
return Overload0(val);
|
|
|
|
}
|
2019-08-23 11:56:54 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension LibClassA
|
|
|
|
{
|
2020-10-22 11:33:13 -07:00
|
|
|
public int32 mB = GetVal(13, 1000, "LibC.LibClassA.mB");
|
|
|
|
|
|
|
|
public static this()
|
|
|
|
{
|
|
|
|
sMagic += 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ~this()
|
|
|
|
{
|
|
|
|
sMagic += 2000;
|
|
|
|
}
|
2019-08-23 11:56:54 -07:00
|
|
|
|
|
|
|
public this(int8 i8)
|
|
|
|
{
|
|
|
|
PrintF("LibC.LibClassA()\n");
|
|
|
|
mB += 30000;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int LibC_GetB()
|
|
|
|
{
|
|
|
|
return mB;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-01 12:06:51 -07:00
|
|
|
static
|
|
|
|
{
|
|
|
|
public static int Overload0(int32 a)
|
|
|
|
{
|
|
|
|
return 3;
|
|
|
|
}
|
2020-07-16 16:03:36 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace LibSpace
|
|
|
|
{
|
|
|
|
static
|
|
|
|
{
|
|
|
|
public static int MethodA()
|
|
|
|
{
|
|
|
|
return 100;
|
|
|
|
}
|
|
|
|
}
|
2020-07-01 12:06:51 -07:00
|
|
|
}
|