mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed extension initializers and dtors. [NoExtension]. Extension warning
This commit is contained in:
parent
6e71cbc765
commit
b6db69d2b0
15 changed files with 235 additions and 64 deletions
|
@ -14,15 +14,25 @@ namespace LibB
|
|||
|
||||
extension LibClassA
|
||||
{
|
||||
public int32 mB = GetVal(8, "LibB.LibClassA.mB");
|
||||
public int32 mB = GetVal(8, 100, "LibB.LibClassA.mB");
|
||||
|
||||
public this()
|
||||
public static this()
|
||||
{
|
||||
sMagic += 100;
|
||||
}
|
||||
|
||||
public ~this()
|
||||
{
|
||||
sMagic += 200;
|
||||
}
|
||||
|
||||
public new this() : [NoExtension]this()
|
||||
{
|
||||
PrintF("LibB.LibClassA()\n");
|
||||
mB += 100;
|
||||
}
|
||||
|
||||
public this(int32 a)
|
||||
public new this(int32 a)
|
||||
{
|
||||
PrintF("LibB.LibClassA(int32)\n");
|
||||
mB += 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue