1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00
Beef/IDE/Tests/Test1/src/Lambdas.bf

32 lines
411 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
#pragma warning disable 168
namespace IDETest
{
class LambdaTester
{
public int mA = 123;
public int mB = 234;
public void Test1()
{
int outerVar = 88;
delegate int(int argA0) dlg = scope (argA1) =>
{
int a = mA;
int b = outerVar;
return 222;
};
//LambdaTest_Test1
dlg(99);
}
public static void Test()
{
LambdaTester lt = scope .();
lt.Test1();
}
}
}