Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2004-05-11 15:01:31 +0400
committerRaja R Harinath <harinath@hurrynot.org>2004-05-11 15:01:31 +0400
commitc05298354bc07692d312a351dd0945a94accc18c (patch)
treedecceca72d44775713d1474f4dda4b97e5cd83b4 /mcs/tests/test-252.cs
parentbc4032669c6ff5ffc8731535687497cfdac183b4 (diff)
New test from #58290.
svn path=/trunk/mcs/; revision=27078
Diffstat (limited to 'mcs/tests/test-252.cs')
-rw-r--r--mcs/tests/test-252.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-252.cs b/mcs/tests/test-252.cs
new file mode 100644
index 00000000000..41047f39f26
--- /dev/null
+++ b/mcs/tests/test-252.cs
@@ -0,0 +1,17 @@
+// testcase from #58290
+
+delegate void Foo ();
+class A {
+ public event Foo Bar;
+
+ public static void m1 () { }
+
+ public static void Main ()
+ {
+ A a = new A();
+ a.Bar += new Foo (m1);
+ a.Bar -= new Foo (m1);
+ System.Diagnostics.Debug.Assert (a.Bar == null);
+ }
+}
+