fixed warning level
authorMarek Safar <marek.safar@gmail.com>
Mon, 7 Mar 2005 16:00:00 +0000 (16:00 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 7 Mar 2005 16:00:00 +0000 (16:00 -0000)
update fixed

svn path=/trunk/mcs/; revision=41531

19 files changed:
mcs/errors/CONTRIBUTORS_README
mcs/errors/cs0108-10.cs
mcs/errors/cs0108-11.cs
mcs/errors/cs0108-12.cs
mcs/errors/cs0108-2.cs
mcs/errors/cs0108-3.cs
mcs/errors/cs0108-4.cs
mcs/errors/cs0108-5.cs
mcs/errors/cs0108-6.cs
mcs/errors/cs0108-7.cs
mcs/errors/cs0108-8.cs
mcs/errors/cs0108-9.cs
mcs/errors/cs0108.cs
mcs/errors/cs0114.cs
mcs/errors/cs0576.cs [deleted file]
mcs/errors/cs0654.cs [deleted file]
mcs/errors/cs0681.cs
mcs/errors/mcs-expect-no-error
mcs/errors/mcs-expect-wrong-error

index 85ffec5c7f56c1ca7bea286a9726efdfd2eb237a..a90d8700f4f23933885ea007b929cb2590524a5b 100644 (file)
@@ -74,6 +74,8 @@ Mono MCS Errors.
 
        Here is a list of errors reported by csc 1.0, 1.1 and not supported by Mono.
         Please add comment for every error.
-        
+
+       CS0576: not supported by csc 2.0
         CS0580: Included in error CS1501 (not supported by csc 2.0)
         CS0581: Included in error CS0117 (not supported by csc 2.0)
+       CS0654: not supported by csc 2.0
index 152a671596be4e8e1bb45905b82116d8236ac9bc..c533aaa356a2da10680687733e024fd4ff84723c 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Derived.EE' because it hides inherited member
-// Line: 11
+// Line: 12
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public enum EE {
index b4fe34149f00cd70202de91ea138b73028470a1e..30f4a12c6175035fcd88e52bedc6cca8edfaf4d2 100644 (file)
@@ -1,6 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Bar.this[int, int]' because it hides inherited member
 // Line: 15
-// Compiler options: -warnaserror -warn:1
+// Compiler options: -warnaserror -warn:2
 
 public class Foo
 {
index cfb5e9b6d02c7190991a45837dc0d92dd92f6081..994c188275ee8bc926de05471848a243935a677b 100644 (file)
@@ -1,6 +1,6 @@
 // cs0108-12.cs: The keyword new is required on 'Libs.MyLib' because it hides inherited member
 // Line: 18
-// Compiler options: -warnaserror -warn:1
+// Compiler options: -warnaserror -warn:2
 
 using System;
 using System.Runtime.InteropServices;
index 7df3c8a8237cbe8e3045560dc409c6cadc421e4a..00c407ce69f8428f1172bb9031527d0aeec87c78 100644 (file)
@@ -1,6 +1,6 @@
 // cs0108-2.cs: The new keyword is required on 'Derived.Test(bool)' because it hides 'BaseInterface.Test(bool)'
 // Line: 9
-// Compiler options: -warnaserror -warn:1 -t:library
+// Compiler options: -warnaserror -warn:2 -t:library
 
 interface BaseInterface {
        void Test (bool arg);
index 7ad4a7da4e7798aca02e2aebea472db2b3ebf2e8..d9e041ce4847125338adcdb017abe35b3647c332 100644 (file)
@@ -1,6 +1,6 @@
 // cs0108.cs: The new keyword is required on 'O.InnerAttribute()' because it hides inherited member
 // Line: 12
-// Compiler options: -t:library
+// Compiler options: -warnaserror -warn:2
 
 using System;
 
index 74a9fa0b4c493a6008c9e47e8718abbf669a4ed4..8f2f5eeea92481c4d837555cc5202a180c5364e8 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Derived.Prop(int)' because it hides inherited member
-// Line: 13
+// Line: 10
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public void Prop (int a) {}
index 49b27a9e85a62b76fcf5cd5a2fbd1a6be99a94f5..5d39ea1e08cd2f4efeb4763cd1f10d4b83acb827 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Derived.Prop' because it hides inherited member
-// Line: 13
+// Line: 10
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public bool Prop = false;
index baabbcc93c7b55848d3e1b5df9ca09663cb2e481..fc7db80f4240f5a0ec745b1388f2d4d33edd19ee 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Derived.Prop' because it hides inherited member
-// Line: 13
+// Line: 14
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public int Prop {
index cfb4925b62b95d67396061547bf175a5888fb606..19d52b743360fdad5f79b7e6e8073c1e7ce1badf 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Derived.Prop because it hides inherited member
 // Line: 13
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public bool Prop = false;
index 86395366ecc8787cbdeb7bdc10d1bd43a0736545..9df50869610dd149e5672d94348ea53ab87e25bb 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Derived.Method()' because it hides inherited member
-// Line: 10
+// Line: 11
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public bool Method () { return false; }
index 073f5ee6e2ebafb53fb3a83559e6fe06f4042c0a..677681374af0c69a69f743aa176be5ff1132fba0 100644 (file)
@@ -1,5 +1,6 @@
 // cs0108.cs: The new keyword is required on 'Outer.Inner' because it hides inherited member
 // Line: 13
+// Compiler options: -warnaserror -warn:2
 
 public class Base
 {
index ba5e3ec97b1ff9a0257ace9eb28f514b8e7ee845..ac1df1a1d1da1b5aac3f7721aa629811968349f2 100644 (file)
@@ -1,6 +1,6 @@
 // cs0108.cs: The new keyword is required on MEMBER because it hides MEMBER2
 // Line:
-// Compiler options: -warnaserror -warn:1
+// Compiler options: -warnaserror -warn:2
 
 class Base {
        public void F () {}
index a617710997dddec26611780e666b42f94c15de17..68222c3e00b28e015ef451a4f7ae2622d3ad23ec 100644 (file)
@@ -1,5 +1,7 @@
 // cs0114.cs: Y.XX hides inherited member X.XX.  Must use `override' or `new' keyword
 // Line: 8
+// Compiler options: -warnaserror -warn:2
+
 public abstract class X {
        public abstract void XX ();
 }
diff --git a/mcs/errors/cs0576.cs b/mcs/errors/cs0576.cs
deleted file mode 100644 (file)
index 32febd7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// cs0576.cs: Namespace already contains a definition for 'System'\r
-// Line: 5\r
-\r
-using System;\r
-using System = System;\r
-\r
-class MainClass {\r
-        public static void Main() {\r
-        }\r
-}\r
diff --git a/mcs/errors/cs0654.cs b/mcs/errors/cs0654.cs
deleted file mode 100644 (file)
index 9622867..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs0654.cs: Method referenced without argument list.
-// Line: 12
-class X {
-       int a (int a)
-       {
-               return 0;
-       }
-
-       void b ()
-       {
-               int x = a;
-       }
-}
index 70a80d0af79fa719194f590add1938d98ab08ad5..4c801e4d1c45047170264154dbe947ec9d03d1d8 100644 (file)
@@ -1,7 +1,8 @@
-// cs0681: Fields can not be abstract
-// Line: 4
+// cs0681: The modifier 'abstract' is not valid on fields. Try using a property instead
+// Line: 5
+
 class X {
-       abstract int name;
+       abstract const int name = 3;
 
        static void Main () {}
 }
index 1a4fd23e5e8067cd2542a9be1e1cb708ff394c68..6f43080ba83150dbeb5ee0e6b2e236be61e1b6e5 100644 (file)
@@ -17,5 +17,4 @@ cs0642-2.cs
 cs0642.cs
 cs0647.cs # corlib bug #73142
 cs0652.cs
-cs1035.cs
 cs2023.cs
index f8e02c635aa551d832b6c6590fe1923ca399a200..66f431414b46a3d328a32067c846a04de5f341c8 100644 (file)
@@ -32,9 +32,6 @@ cs0642-5.cs
 cs0642-6.cs
 cs0647-15.cs # corlib bug 73143
 cs0654.cs
-cs0681.cs
-cs0683.cs
-cs0686.cs
 cs1501-5.cs
 cs1513.cs
 cs1518.cs