diff options
Diffstat (limited to 'mcs/tests/test-async-53.cs')
-rw-r--r-- | mcs/tests/test-async-53.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/tests/test-async-53.cs b/mcs/tests/test-async-53.cs new file mode 100644 index 0000000000..3ffee8c4d5 --- /dev/null +++ b/mcs/tests/test-async-53.cs @@ -0,0 +1,27 @@ +using System; + +class Y +{ +} + +class X +{ + public event Action<int, string> E; + + void Foo () + { + var nc = new Y (); + + E += async (arg1, arg2) => { + nc = null; + }; + + E (1, "h"); + } + + public static void Main () + { + var x = new X (); + x.Foo (); + } +}
\ No newline at end of file |