Beef
Beef copied to clipboard
Possible issue with member mixins
The code below doesn't compile, but looks like it should since it works if you use this. to call the Test2 mixin inside Test3 mixin.
class TestMixin
{
public void Test1()
{
}
public mixin Test2()
{
Test1();
}
public mixin Test3()
{
Test2!();
}
}
public static void Main()
{
TestMixin test = scope .();
test.Test1(); // Ok
test.Test2!(); // Ok
test.Test3!(); // Failed to inject mixin.
}
Tested with https://github.com/beefytech/Beef/commit/2b7d0284f7891b3d82e75f814ff90000d185a62d