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 01:12:08 +0400
committerMarek Safar <marek.safar@gmail.com>2004-09-14 01:12:08 +0400
commit03d453a0c553d7dcae61bcaff2bc91bfad8239a3 (patch)
tree76901aba8271cb668422df72c248f75130e7a6dc /mcs/tests/test-293.cs
parent0812049095e3cd43db2dd843a4bcbf2f336f06ba (diff)
2004-09-13 Marek Safar <marek.safar@seznam.cz>
* test-293.cs: New test for bug #65757. svn path=/trunk/mcs/; revision=33821
Diffstat (limited to 'mcs/tests/test-293.cs')
-rw-r--r--mcs/tests/test-293.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-293.cs b/mcs/tests/test-293.cs
new file mode 100644
index 00000000000..d90e4270033
--- /dev/null
+++ b/mcs/tests/test-293.cs
@@ -0,0 +1,23 @@
+// This code must be compilable without any warning
+// Compiler options: -warnaserror -warn:4
+
+using System;
+
+public class A {
+ [Obsolete()]
+ public virtual string Warning {
+ get { return ""; }
+ }
+}
+
+public class B : A {
+ [Obsolete()]
+ public override string Warning {
+ get { return ""; }
+ }
+
+ public static void Main ()
+ {
+ }
+}
+