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:
authorMarek Safar <marek.safar@gmail.com>2010-05-19 14:45:54 +0400
committerMarek Safar <marek.safar@gmail.com>2010-05-19 14:45:54 +0400
commit092b368138197f37806e84c37f42266ec5250c7e (patch)
tree0310409c58aac7737f2d5bf2d4b2a23c171dda0b /mcs/tests/test-770.cs
parent0f702bf4c7102bd2b498f06dcdda63c57b2a9126 (diff)
New test.
svn path=/trunk/mcs/; revision=157542
Diffstat (limited to 'mcs/tests/test-770.cs')
-rw-r--r--mcs/tests/test-770.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/test-770.cs b/mcs/tests/test-770.cs
new file mode 100644
index 00000000000..85b2ad50015
--- /dev/null
+++ b/mcs/tests/test-770.cs
@@ -0,0 +1,29 @@
+using System;
+
+public class MyClass
+{
+ public class A
+ {
+ public event EventHandler MouseClick;
+ }
+
+ public class B : A
+ {
+ public new event EventHandler MouseClick;
+ }
+
+ public class C : B
+ {
+ public new void MouseClick ()
+ {
+ Console.WriteLine ("This should be printed");
+ }
+ }
+
+ static public void Main ()
+ {
+ C myclass = new C ();
+ myclass.MouseClick ();
+ }
+}
+