1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00
Beef/IDE/Tests/Test1/src/Lambdas.bf
2019-08-23 11:56:54 -07:00

31 lines
411 B
Beef

#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();
}
}
}