mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
45
IDE/Tests/Test1/src/Mixins.bf
Normal file
45
IDE/Tests/Test1/src/Mixins.bf
Normal file
|
@ -0,0 +1,45 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue