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

Capture test for valueless lambda inside valueless lambda

This commit is contained in:
Brian Fiete 2021-12-31 12:44:56 -05:00
parent af0cd194db
commit f35a3de175

View file

@ -169,6 +169,13 @@ namespace Tests
mEvent(null, .Empty);
mEvent.Dispose();
Test.Assert(mList.Back.Test == 1);
int i = 0;
mList.ForEach((l) => l.mList.ForEach((l) =>
{
i++;
}));
Test.Assert(i == 1);
}
struct MethodRefHolder<T> where T : delegate int(int num)