--- /dev/null
+using System;
+
+public class Error {
+ [Obsolete ("NOT", true)]
+ public virtual string Filename {
+ set {
+ }
+ get {
+ return "aa";
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+.assembly extern mscorlib { }
+
+.assembly 'cs1546-lib' { }
+
+.namespace Test {
+
+.class interface public abstract auto ansi import ITopic
+{
+ .property string Title(int32)
+ {
+ .get instance string Test.ITopic::get_Title(int32, int32)
+ }
+
+ .method public hidebysig newslot specialname abstract virtual instance string get_Title(int32, int32) runtime managed internalcall
+ {
+ }
+}
+}
-// cs0019-10.cs: Operator `+' cannot be applied to operands of type `A' and `B'
+// cs0019-10.cs: Operator `-' cannot be applied to operands of type `A' and `B'
// Line : 20
enum A
// cs0026-2.cs: Keyword `this' is not valid in a static property, static method, or static field initializer
-//
+// Line: 4
class X {
static object o = this;
-// cs0034-2.cs : Operator '+' is ambiguous on operands of type 'A' and 'A'
+// cs0034-2.cs : Operator `+' is ambiguous on operands of type `A' and `A'
// Line: 22
public class A {
-// cs0034-2.cs : Operator '+' is ambiguous on operands of type 'Y' and 'X'
+// cs0034-2.cs : Operator `+' is ambiguous on operands of type `Y' and `X'
// Line: 22
public class Y {
public static implicit operator int (Y y) {
-// cs0031.cs: Constant value `256' cannot be converted to a `byte'
+// cs0037-2.cs: Cannot convert null to `byte' because it is a value type
// Line : 7
public class Blah {
// cs0038.cs: Cannot access a nonstatic member of outer type `A' via nested type `B.C'
-// line: 15
+// Line: 15
public class A {
public int Foo { get { return 1; } }
// cs0038.cs: Cannot access a nonstatic member of outer type `B' via nested type `B.C'
-// line: 14
+// Line: 14
public class B {
public static void Main ()
// cs0038.cs: Cannot access a nonstatic member of outer type `X' via nested type `X.Y'
-// line: 15
+// Line: 15
using System;
class X
// cs0039.cs: Cannot convert type `decimal' to `string' via a built-in conversion
-// line: 8
+// Line: 8
class A {
public static void Main ()
{
-// cs0110.cs: The evaluation of the constant value for `E.a' involves a circular definition
+// cs0110.cs: The evaluation of the constant value for `E.c' involves a circular definition
// Line: 6
enum E
-// cs0110.cs: The evaluation of the constant value for `A.B.C.F.D' involves a circular definition
+// cs0110.cs: The evaluation of the constant value for `A.B.C.X' involves a circular definition
// Line: 9
class A {
// cs0121-3.cs: The call is ambigious between `IInteger.Add (int)' and `IDouble.Add (double)'
-// line 28
+// Line: 28
// (note, this is taken from `13.2.5 Interface member access')
interface IInteger {
// cs0122-5.cs: `Test.Foo.Bar' is inaccessible due to its protection level
+// Line: 11
public class Test
{
// cs0122-6.cs: `Test.Foo.IBar' is inaccessible due to its protection level
+// Line: 11
public class Test
{
// cs0122-7.cs: `BB.AnEvent' is inaccessible due to its protection level
+// Line: 10
using System;
// cs0122-8.cs: `A.member' is inaccessible due to its protection level
-//
+// Line: 17
// NOTE: if `member' were a field or a property, this'd be CS1540
using System;
-// cs0133-5.cs: The expression being assigned to `i' must be constant
+// cs0133-5.cs: The expression being assigned to `T.i' must be constant
// Line: 12
class T
-// cs0136-6.cs: A local variable named `top' cannot be declared in this scope because it would give a different meaning to `top', which is already used in a `child' scope
+// cs0136-6.cs: A local variable named `top' cannot be declared in this scope because it would give a different meaning to `top', which is already used in a `parent or current' scope
// Line: 19
using System.Collections;
// cs0159-2.cs: No such label `case 20:' within the scope of the goto statement
+// Line: 13
class y {
enum X { A = 1, B = 1, C = 1 }
// cs0196.cs: A pointer must be indexed by only one value
-// line: 10
+// Line: 10
// Compiler options: -unsafe
using System;
// cs0200.cs: Property or indexer `X.P' cannot be assigned to (it is read only)
-// line: 12
+// Line: 12
class X {
static int P {
get {
// cs0205.cs: Cannot call an abstract base member `A.Foobar()'
-//
+// Line: 20
using System;
public abstract class A
// CS0230.cs: Type and identifier are both required in a foreach statement
-// Lise: 12
+// Line: 12
using System;
// cs0236.cs: A field initializer cannot reference the nonstatic field, method, or property `X.Foo'
+// Line: 12
class X
{
// cs0246-10.cs: The type or namespace name `Nonexistant' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 5
using System;
using Nonexistant;
// cs0246-11.cs: The type or namespace name `aa' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 6
public class Test
{
// cs0523.cs: Struct member `B.a' of type `A' causes a cycle in the struct layout
-//
+// Line: 9
struct A {
B b;
// cs0524-2.cs: `Interface.I': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// Line: 5
+
interface Interface {
interface I {}
}
\ No newline at end of file
// cs0524-3.cs: `Interface.E': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// Line: 4
+
interface Interface {
enum E {
White,
-// cs0525.cs: Interfaces cannot contain fields// Line: 5
-interface Interface { bool value = false;}
\ No newline at end of file
+// cs0525.cs: Interfaces cannot contain fields
+// Line: 5
+interface Interface {
+ bool value = false;
+}
\ No newline at end of file
// cs0557-2.cs: Duplicate user-defined conversion in type `C'
-//
+// Line: 9
class C {
public static bool operator != (C a, C b)
{
// cs0571-2.cs: `System.Reflection.MemberInfo.Name.get': cannot explicitly call operator or accessor
+// Line: 8
using System;
public class EntryPoint {
--- /dev/null
+// cs0571-4.cs: `MainClass.this[int, bool, string].get': cannot explicitly call operator or accessor
+// Line: 15
+
+using System.Runtime.CompilerServices;
+
+class MainClass {
+ [IndexerName ("AA")]
+ int this [int Value, bool Value2, string Value3] {
+ get {
+ return 1;
+ }
+ }
+
+ public MainClass () {
+ int i = get_AA (2, false, "aaa");
+ }
+}
-// cs0619-39.cs: `c.ob' is obsolete: `ooo'
+// cs0619-39.cs: `C.ob' is obsolete: `ooo'
// Line: 13
using System;
-// cs0619-39.cs: `c.ob' is obsolete: `ooo'
+// cs0619-40.cs: `C.ob' is obsolete: `ooo'
// Line: 13
using System;
--- /dev/null
+// cs0619-41.cs: `A.Filename' is obsolete: `Obsolete'
+// Line: 8
+
+class A: Error {
+ [System.ObsoleteAttribute ("Obsolete", true)]
+ public override string Filename {
+ set {
+ }
+ }
+
+ public static void Main () {}
+}
+
+public class Error {
+ public virtual string Filename {
+ set {
+ }
+ get {
+ return "aa";
+ }
+ }
+}
+
+class B {
+ void TT () {
+ new A ().Filename = "Filename";
+ }
+}
\ No newline at end of file
--- /dev/null
+// cs0619-42.cs: `Error.member' is obsolete: `Obsolete member'
+// Line: 8
+// Compiler options: -reference:CS0619-42-lib.dll
+
+class A: Error {
+ public A () {
+ string s = Filename;
+ }
+
+ public override string Filename {
+ set {
+ }
+ }
+}
\ No newline at end of file
// cs0625-1.cs: `cs0625.GValue.foo': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
+// Line: 10
using System;
using System.Runtime.InteropServices;
// cs0625.cs: `cs0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
+// Line: 11
using System;
using System.Runtime.InteropServices;
// CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit)
+// Line: 10
using System;
using System.Runtime.InteropServices;
-// cs0652-2.cs : Comparison to integral constant is useless; the constant is outside the range of type 'byte'
+// cs0652-2.cs : Comparison to integral constant is useless; the constant is outside the range of type `byte'
// Line: 11
// Compiler options: /warn:2 /warnaserror
using System;
-// cs0652-3.cs : Comparison to integral constant is useless; the constant is outside the range of type 'ushort'
+// cs0652-3.cs : Comparison to integral constant is useless; the constant is outside the range of type `ushort'
// Line: 11
// Compiler options: /warn:2 /warnaserror
using System;
-// cs0652-4.cs : Comparison to integral constant is useless; the constant is outside the range of type 'short'
+// cs0652-4.cs : Comparison to integral constant is useless; the constant is outside the range of type `short'
// Line: 11
// Compiler options: /warn:2 /warnaserror
using System;
-// cs0652.cs: Comparison to integral constant is useless; the constant is outside the range of type 'type'
+// cs0652.cs: Comparison to integral constant is useless; the constant is outside the range of type `byte'
// Line: 9
// Compiler options: -warnaserror -warn:2
// cs1023.cs: An embedded statement may not be a declaration or labeled statement
-// line: 9
+// Line: 9
class Test
{
// cs1501-3.cs: No overload for method `X' takes `2' arguments
+// Line: 8
+
public struct X {
public X(int i) { }
// cs1540-2.cs : Cannot access protected member `A.X()' via a qualifier of type `B'; the qualifier must be of type `C' (or derived from it)
-// line: 21
+// Line: 21
class A
{
--- /dev/null
+// cs1546.cs: Property `Title' is not supported by the C# language. Try to call the accessor method `Test.ITopic.get_Title(int, int)' directly
+// Line: 9
+// Compiler options: -r:CS1546-lib.dll
+
+using Test;
+
+class C {
+ public C (ITopic it) {
+ string i = it.Title (2, 3);
+ }
+}
// cs1601-2.cs: Method or delegate parameter cannot be of type `ref System.ArgIterator'
-//
+// Line: 10
using System;
class X {
// cs1601.cs: Method or delegate parameter cannot be of type `ref System.TypedReference'
-//
+// Line: 10
using System;
class X {
// cs1656-2.cs: Cannot assign to `p' because it is a `fixed variable'
-// line: 10
+// Line: 10
// Compiler options: -unsafe
unsafe class X {
// cs1656-3.cs: Cannot assign to `i' because it is a `foreach iteration variable'
-// line: 9
+// Line: 9
class X {
// cs1656.cs: Cannot assign to `m' because it is a `using variable'
-// line: 10
+// Line: 10
using System.IO;
class X {
// cs1721.cs: `B': Classes cannot have multiple base classes (`A1' and `A2')
-//
+// Line: 9
class A1 {
}
// cs1722-2.cs: `B': Base class `A1' must be specified as first
-//
+// Line: 9
class A1 {
}
-// cs3005-11.cs: Identifier `CLSInterface' differing only in case is not CLS-compliant
+// cs3005-11.cs: Identifier `clsInterface' differing only in case is not CLS-compliant
// Line: 10
using System;
-// cs3005-15.cs: Identifier `A' differing only in case is not CLS-compliant
+// cs3005-15.cs: Identifier `a' differing only in case is not CLS-compliant
// Line: 10
using System;
-// cs3005-6.cs: Identifier `i1' differing only in case is not CLS-compliant
+// cs3005-6.cs: Identifier `I1' differing only in case is not CLS-compliant
// Line: 9
[assembly:System.CLSCompliant(true)]
// cs5001.cs: Program `cs5001.exe' does not contain a static `Main' method suitable for an entry point
+// Line: 0
using System;
using System.Collections;
cs0548.cs
cs0560.cs
cs0567.cs
+cs0612-2.cs NO ERROR
+cs0619-42.cs
cs0619-31.cs NO ERROR
cs0642.cs NO ERROR
cs0642-2.cs NO ERROR
cs1641.cs
cs1666.cs NO ERROR
cs2007.cs
+
+cs0149.cs
+cs0531-2.cs
+cs0571-4.cs
\ No newline at end of file