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-03-29 20:46:08 +0400
committerMarek Safar <marek.safar@gmail.com>2004-03-29 20:46:08 +0400
commitce6dfca587f29e770f3b3a13903f6de81fc26529 (patch)
treebb66b8de28dba6ec5d13ceddf781af2be030d21a /mcs/errors/cs0619.cs
parent4c611013876fb718d58df7bf64f230953eec3646 (diff)
2004-03-29 Marek Safar <marek.safar@seznam.cz>
* cs0029-3.cs, cs0173-2.cs, cs0619-{2-26}.cs, cs0672.cs: 29 new error tests. svn path=/trunk/mcs/; revision=24715
Diffstat (limited to 'mcs/errors/cs0619.cs')
-rw-r--r--mcs/errors/cs0619.cs34
1 files changed, 14 insertions, 20 deletions
diff --git a/mcs/errors/cs0619.cs b/mcs/errors/cs0619.cs
index b5954df0fd6..0772e7988bb 100644
--- a/mcs/errors/cs0619.cs
+++ b/mcs/errors/cs0619.cs
@@ -1,20 +1,14 @@
-// cs0619.cs: 'MethodError()' is obsolete: 'Do not use it'
-// Line: 17
-
-class Obsolete {
- [System.Obsolete]
- public static void MethodWarning() {
- }
-
- [System.Obsolete("Do not use it.", true)]
- public static void MethodError() {
- }
-}
-
-class MainClass {
- public static void Main () {
- Obsolete.MethodWarning();
- Obsolete.MethodError();
- }
-}
-
+// cs0619.cs: 'Obsolete.MethodError()' is obsolete: 'Do not use it'
+// Line: 12
+
+class Obsolete {
+ [System.Obsolete("Do not use it.", true)]
+ public static void MethodError() {
+ }
+}
+
+class MainClass {
+ public static void Main () {
+ Obsolete.MethodError();
+ }
+} \ No newline at end of file