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

Fixed deferred handling of delegate binds in binary operations

This commit is contained in:
Brian Fiete 2021-01-22 13:25:37 -08:00
parent 1f42567339
commit 5aeaa8808b
4 changed files with 21 additions and 6 deletions

View file

@ -158,8 +158,15 @@ namespace Tests
ClassB<int8>.DelegateB dlg2 = scope (val) => val + 123;
Test.Assert(dlg2(3) == 126);
void LocalEventHandler(Object sender, EventArgs e)
{
}
Event<EventHandler> e = .();
e += scope (sender, e) => {};
e += new (sender, e) => {};
e += new => LocalEventHandler;
e.Dispose();
}
public static void Modify(ref int a, ref Splattable b)