2020-07-01 12:06:51 -07:00
|
|
|
using System;
|
|
|
|
|
2019-08-23 11:56:54 -07:00
|
|
|
namespace LibB
|
|
|
|
{
|
|
|
|
class LibB0
|
|
|
|
{
|
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(8, 100, "LibB.LibClassA.mB");
|
2019-08-23 11:56:54 -07:00
|
|
|
|
2020-10-22 11:33:13 -07:00
|
|
|
public static this()
|
|
|
|
{
|
|
|
|
sMagic += 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ~this()
|
|
|
|
{
|
|
|
|
sMagic += 200;
|
|
|
|
}
|
|
|
|
|
|
|
|
public new this() : [NoExtension]this()
|
2019-08-23 11:56:54 -07:00
|
|
|
{
|
|
|
|
PrintF("LibB.LibClassA()\n");
|
|
|
|
mB += 100;
|
|
|
|
}
|
|
|
|
|
2020-10-22 11:33:13 -07:00
|
|
|
public new this(int32 a)
|
2019-08-23 11:56:54 -07:00
|
|
|
{
|
|
|
|
PrintF("LibB.LibClassA(int32)\n");
|
|
|
|
mB += 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int32 LibB_GetB()
|
|
|
|
{
|
|
|
|
return mB;
|
|
|
|
}
|
|
|
|
}
|
2020-07-01 12:06:51 -07:00
|
|
|
|
|
|
|
static
|
|
|
|
{
|
|
|
|
public static int Overload0(int16 a)
|
|
|
|
{
|
|
|
|
return 2;
|
|
|
|
}
|
2020-07-16 16:03:36 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace LibSpace
|
|
|
|
{
|
|
|
|
static
|
|
|
|
{
|
|
|
|
public static int MethodB()
|
|
|
|
{
|
|
|
|
return 200;
|
|
|
|
}
|
|
|
|
}
|
2020-07-01 12:06:51 -07:00
|
|
|
}
|