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: 3ed5566decf7ca1454b56ae3158ff531635c2403 (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: namespace already contains a definition for this enum
// 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
());
	}
}