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:
authorAtsushi Eno <atsushieno@gmail.com>2005-09-05 21:15:55 +0400
committerAtsushi Eno <atsushieno@gmail.com>2005-09-05 21:15:55 +0400
commit92ab2c0a65afdc3a3b3862d950e643fc9c1cbec0 (patch)
treea617b28de7d8182e0f039d7a50683ee220818cf4 /mcs/tests/test-453.cs
parent2cd275642a10bd4d13c9a8cd3744b758380c4af0 (diff)
2005-09-05 Atsushi Enomoto <atsushi@ximian.com>
* expression.cs : (Binary.DoResolve): when one is enum constant and another is constant 0, then return enum one *as enum type*. Fixed bug 74846. * test-453.cs : test for #75846. svn path=/trunk/mcs/; revision=49487
Diffstat (limited to 'mcs/tests/test-453.cs')
-rw-r--r--mcs/tests/test-453.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-453.cs b/mcs/tests/test-453.cs
new file mode 100644
index 00000000000..3543b0d7bbe
--- /dev/null
+++ b/mcs/tests/test-453.cs
@@ -0,0 +1,17 @@
+using System;
+
+class C {
+ internal enum Flags {
+ Removed = 0,
+ Public = 1
+ }
+
+ static Flags _enumFlags;
+
+ public static void Main()
+ {
+ if ((Flags.Removed | 0).ToString () != "Removed")
+ throw new ApplicationException ();
+ }
+}
+