1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Test changes

This commit is contained in:
Brian Fiete 2019-12-11 16:56:09 -08:00
parent 8b71f8d49a
commit 7247cad7f3
10 changed files with 121 additions and 59 deletions

View file

@ -34,6 +34,8 @@ namespace Hey.Dude.Bro
{
class TestClass
{
static int gApzong = 123;
[CLink, StdCall]
public static extern void OutputDebugStringA(char8* str);
@ -144,6 +146,18 @@ namespace Hey.Dude.Bro
}
}
enum EnumB
{
AAA,
BBB
}
enum EnumC
{
CCC,
DDD
}
static void Flarg()
{
EnumA ea;
@ -194,13 +208,28 @@ namespace Hey.Dude.Bro
return val.GetHashCode();
}
class Zangles
{
public static int GetMe(Zangles zang, String str)
{
return 99;
}
}
public static int Main(String[] args)
{
Int i = (.)123;
i = i + i;
Zangles zang = scope .();
Zangles.GetMe(zang, "hey");
TypeCode tc = .Boolean;
PrintF("Hey\n");
//Test2(1, 2, 3, 4);
Test2(1, 2, 3, 4);
/*IHashable ih = (int32)TypeCode.Boolean;
let hashCode = ih.GetHashCode();*/
@ -302,5 +331,6 @@ namespace AA
static
{
static int gApsings = 123;
}

View file

@ -305,25 +305,55 @@ struct Blurg
//int len = str.[Friend]GetLength();
}
static void Test(int a, int b, Span<int> iSpan)
{
}
public static mixin Florf(int a, int b)
{
}
class Zangles
{
public static int GetMe()
{
return 99;
}
}
public static int32 Hey()
{
while (true)
for (int i < 100)
{
Type t = typeof(Yoofer);
for (let field in t.GetFields())
{
StringView name = field.Name;
}
Yoofer.ColorizeCodeString("abc", .Callstack);
}
#unwarn
return (int32)123;
}
}
[Reflect]
struct Yoofer
class Yoofer
{
int mA;
}
public enum CodeKind
{
Callstack,
Method,
Field,
Type
}
public static void Zorg()
{
int a = 1;
}
public static void ColorizeCodeString(String label, CodeKind codeKind)
{
Zorg();
int a = 1;
}
}