blob: 3ba8fd416acb3b83c9f759574f51cc59bd220d51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// CS3005: Identifier `ErrorCS3005.foo' differing only in case is not CLS-compliant
// Line: 9
// Compiler options: -warnaserror -warn:1
using System;
[assembly: CLSCompliant (true)]
public class ErrorCS3005 {
public int FOO = 0;
public int foo = 1;
public static void Main ( ) {
ErrorCS3005 error = new ErrorCS3005 ();
Console.WriteLine ("This should make the compiler to complain ERROR CS3005, number: {0}", error.foo);
}
}
|