New test.
authorMarek Safar <marek.safar@gmail.com>
Thu, 21 May 2009 11:59:56 +0000 (11:59 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 21 May 2009 11:59:56 +0000 (11:59 -0000)
svn path=/trunk/mcs/; revision=134527

mcs/tests/test-720.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-720.cs b/mcs/tests/test-720.cs
new file mode 100644 (file)
index 0000000..f85a91b
--- /dev/null
@@ -0,0 +1,30 @@
+// Compiler options: -warn:4 -warnaserror
+
+using System;
+
+namespace N
+{
+       class Program
+       {
+               static void Main ()
+               {
+                       Parent pr = new Child();
+                       ((Child)pr).OnExample();
+               }
+       }
+
+       public abstract class Parent
+       {
+               public delegate void ExampleHandler();
+               public abstract event ExampleHandler Example;
+       }
+
+       public class Child : Parent
+       {
+               public override event ExampleHandler Example;
+               public void OnExample()
+               {
+                       if (Example != null) Example();
+               }
+       }
+}