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-14 17:57:14 +0400
committerMarek Safar <marek.safar@gmail.com>2010-07-14 17:57:14 +0400
commitea8490ff755138f46a047883869639a1a7b4d1e7 (patch)
treee28b703078d275fdc1a907c9929385c1f56760e5 /mcs/tests/test-787.cs
parent563589c7795242478c454e826ab8b628e17a5761 (diff)
New tests.
svn path=/trunk/mcs/; revision=160357
Diffstat (limited to 'mcs/tests/test-787.cs')
-rw-r--r--mcs/tests/test-787.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/test-787.cs b/mcs/tests/test-787.cs
new file mode 100644
index 00000000000..5c1d28f4afd
--- /dev/null
+++ b/mcs/tests/test-787.cs
@@ -0,0 +1,32 @@
+using System;
+
+public class A : Attribute
+{
+ public virtual string Prop {
+ set {}
+ get { return null; }
+ }
+
+ public int Field ()
+ {
+ return 0;
+ }
+}
+
+public class B : A
+{
+ public override string Prop {
+ set {}
+ get { return "b"; }
+ }
+
+ public new int Field;
+}
+
+[B (Prop = "a", Field = 3)]
+public class Test
+{
+ public static void Main ()
+ {
+ }
+}