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-07-28 12:44:23 +0400
committerMarek Safar <marek.safar@gmail.com>2010-07-28 12:44:23 +0400
commit491b93da3e94b99c26a67c45db8f7591a1019761 (patch)
treebc97da704844c1c5ed69014bbc2a3324fe5fb51c /mcs/tests/test-788.cs
parent2291d400db58d0218cef3b7404dbceb743a7ce79 (diff)
New tests
Diffstat (limited to 'mcs/tests/test-788.cs')
-rw-r--r--mcs/tests/test-788.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/mcs/tests/test-788.cs b/mcs/tests/test-788.cs
new file mode 100644
index 00000000000..4e421e0ffb6
--- /dev/null
+++ b/mcs/tests/test-788.cs
@@ -0,0 +1,35 @@
+using System;
+
+class Program
+{
+ static int Main ()
+ {
+ B b = new B ();
+ if (b.Message != "OK")
+ return 1;
+ return 0;
+ }
+}
+
+class A
+{
+ public virtual string Message
+ {
+ get
+ {
+ return "OK";
+ }
+ }
+}
+
+class B : A
+{
+ new string Message
+ {
+ get
+ {
+ throw new Exception ();
+ }
+ }
+}
+