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

cs0101.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9420b0af673343e2e6245a151d053d1a81ab5718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// cs0101.cs: The namespace `global::' already contains a definition for `SomeEnum'
// Line: 10
using System;

public enum SomeEnum {
	Something1,
	Something2
}

public enum SomeEnum {
	Dog,
	Fish,
	Cat
}

public class DupeEnumTest {
	public static void Main(string[] args) {
		SomeEnum someEnum = SomeEnum.Dog;
		Console.WriteLine("SomeEnum Result: " + someEnum.ToString
());
	}
}