mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 03:58:01 +02:00
Added object access check to delegate invocation
This commit is contained in:
parent
5a0aa8a95b
commit
65ee34e37b
8 changed files with 89 additions and 10 deletions
|
@ -408,10 +408,10 @@ namespace Tests
|
|||
Test.Assert(a == 10+10 + 30);
|
||||
Test.Assert(mA == 100+300+300 + 300);
|
||||
|
||||
bind.Dispose();
|
||||
|
||||
Test.Assert(Use(scope => dlg, 10) == 400);
|
||||
|
||||
bind.Dispose();
|
||||
|
||||
function int(int num) func = => StaticMethod;
|
||||
Test.Assert(Use(=> StaticMethod, 123) == 1123);
|
||||
Test.Assert(Use(func, 123) == 1123);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue