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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-10-19 10:31:09 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-10-19 10:31:09 +0400
commit8305bbbfe4afa5dc135104f45f8bac925bd96376 (patch)
treedcb997496e41c93219d5edd341f3886c01aa0d92 /mcs/errors/cs0101.cs
parent6d6aeca7eada968442ad074e19f50b0c720cfede (diff)
Add new test file
svn path=/trunk/mcs/; revision=8384
Diffstat (limited to 'mcs/errors/cs0101.cs')
-rw-r--r--mcs/errors/cs0101.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/errors/cs0101.cs b/mcs/errors/cs0101.cs
new file mode 100644
index 00000000000..3ed5566decf
--- /dev/null
+++ b/mcs/errors/cs0101.cs
@@ -0,0 +1,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
+());
+ }
+}
+
+
+
+
+
+