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>2004-09-14 19:51:34 +0400
committerMarek Safar <marek.safar@gmail.com>2004-09-14 19:51:34 +0400
commitd1081d6261fe7d2c1bde2132234b462745c03346 (patch)
tree31aa2eef7fdf1fc6c38a798a768b8dc044c2db85 /mcs/tests/test-294.cs
parent558bd9c7f4fa7c5299eb35d548af7007617db8f2 (diff)
2004-09-14 Marek Safar <marek.safar@seznam.cz>
* test-294.cs: New test for bug #61902. svn path=/trunk/mcs/; revision=33885
Diffstat (limited to 'mcs/tests/test-294.cs')
-rw-r--r--mcs/tests/test-294.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/mcs/tests/test-294.cs b/mcs/tests/test-294.cs
new file mode 100644
index 00000000000..3b32aedea32
--- /dev/null
+++ b/mcs/tests/test-294.cs
@@ -0,0 +1,55 @@
+// Compiler options: -warnaserror -warn:4 -nowarn:169
+
+using System;
+
+[Obsolete]
+class ObsoleteClass
+{
+}
+
+public class Test
+{
+ private string _name;
+
+ [Obsolete()]
+ public Test() : this("layout", false)
+ {
+ }
+
+ [Obsolete()]
+ public Test(string a, bool writeToErrorStream)
+ {
+ Name = a;
+ }
+
+ [Obsolete()]
+ public string Name
+ {
+ get { return _name; }
+ set { _name = value; }
+ }
+}
+
+[Obsolete]
+public class DerivedTest : Test
+{
+ ObsoleteClass member;
+
+ [Obsolete]
+ public DerivedTest(string a) : base(a, false)
+ {
+ Name = a;
+ }
+
+ public string Method ()
+ {
+ return base.Name;
+ }
+
+ public static void Main () {}
+}
+
+[Obsolete]
+class ObsoleteClass2: ObsoleteClass
+{
+}