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:
parent
1f42567339
commit
5aeaa8808b
4 changed files with 21 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue