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
// 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 {
// 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
{
// 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;
// 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);
// 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;
// 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) {}
// 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;
// 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 {
// 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;
// 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; }
// 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
{
// 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 () {}
// 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 ();
}
+++ /dev/null
-// 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
+++ /dev/null
-// cs0654.cs: Method referenced without argument list.
-// Line: 12
-class X {
- int a (int a)
- {
- return 0;
- }
-
- void b ()
- {
- int x = a;
- }
-}
-// 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 () {}
}
cs0642.cs
cs0647.cs # corlib bug #73142
cs0652.cs
-cs1035.cs
cs2023.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