mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +02:00
Capture test for valueless lambda inside valueless lambda
This commit is contained in:
parent
af0cd194db
commit
f35a3de175
1 changed files with 7 additions and 0 deletions
|
@ -169,6 +169,13 @@ namespace Tests
|
||||||
mEvent(null, .Empty);
|
mEvent(null, .Empty);
|
||||||
mEvent.Dispose();
|
mEvent.Dispose();
|
||||||
Test.Assert(mList.Back.Test == 1);
|
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)
|
struct MethodRefHolder<T> where T : delegate int(int num)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue