Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Possible issue with member mixins

Open disarray2077 opened this issue 3 years ago • 0 comments

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

disarray2077 avatar Sep 08 '22 19:09 disarray2077