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/HotSwap_Reflection.bf
2019-08-23 11:56:54 -07:00

37 lines
517 B
Beef

#pragma warning disable 168
using System;
namespace IDETest
{
class HotSwap_Reflection
{
[Reflect]
class ClassA
{
int mA;//ClassA_mA
public static Type GetMyType()
{
return typeof(ClassA);
}
}
public static void Test()
{
//Test_Start
let t0 = ClassA.GetMyType();
for (let field in t0.GetFields())
{
}
let t1 = ClassA.GetMyType();
for (let field in t1.GetFields())
{
}
let t2 = ClassA.GetMyType();
for (let field in t2.GetFields())
{
}
}
}
}