mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 16:10:26 +02:00
45 lines
600 B
Beef
45 lines
600 B
Beef
using System;
|
|
|
|
#pragma warning disable 168
|
|
|
|
namespace IDETest
|
|
{
|
|
class Mixins
|
|
{
|
|
class ClassA
|
|
{
|
|
public String mStr;
|
|
}
|
|
|
|
public static mixin MixA(int a)
|
|
{
|
|
int b = a + 10;
|
|
b + 100
|
|
}
|
|
|
|
public static mixin MixB(int a)
|
|
{
|
|
int c = MixA!(a + 10000);
|
|
int d = MixA!(a + 20000);
|
|
int e = MixA!(a + 30000);
|
|
}
|
|
|
|
public static mixin MixC(int a)
|
|
{
|
|
int b = 100;
|
|
MixB!(b);
|
|
MixB!(b + 1000);
|
|
}
|
|
|
|
public static void Test()
|
|
{
|
|
//Test_Start
|
|
ClassA ca = scope .();
|
|
ca.mStr = new String("Boof");
|
|
|
|
DeleteAndNullify!(ca.mStr);
|
|
int a = 123;
|
|
MixC!(1);
|
|
}
|
|
}
|
|
}
|