1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 23:56:05 +02:00
Beef/IDE/Tests/Test1/src/Methods.bf

77 lines
1 KiB
Beef

namespace IDETest
{
class Methods
{
class ClassA
{
public int TEST_MethodA()
{
return 200;
}
public int TEST_MethodB()
{
return 201;
}
/*ClassA_MethodC
public int TEST_MethodC()
{
return 202;
}
*/
public static int TEST_StaticMethodA()
{
return 100;
}
public static int TEST_StaticMethodB()
{
return 101;
}
/*ClassA_StaticMethodC
public static int TEST_StaticMethodC()
{
return 102;
}
*/
}
public static void DoTest()
{
/*DoTest_Body
ClassA ca = scope .();
ca.TEST_MethodB();
ca.TEST_MethodC();
ClassA.TEST_StaticMethodB();
ClassA.TEST_StaticMethodC();
*/
}
enum EnumA
{
case A;
case B;
case C;
public const EnumA D = (EnumA)4;
}
static int Test0(EnumA a, int b, int c = 1000)
{
return (int)a + (int)b + (int)c;
}
public static void Test()
{
//Test_Start
ClassA ca = scope .();
ca.TEST_MethodA();
ClassA.TEST_StaticMethodA();
DoTest();
Test0(.A, 1, 2);
}
}
}