Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs3005.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d05a856014a0e95aa705cbf5d2912f231206cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs3005: Identifier foo differing only in case is not CLS-Compliant.
// Line: 9

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);
	}
}