diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-09-05 21:15:55 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-09-05 21:15:55 +0400 |
commit | 92ab2c0a65afdc3a3b3862d950e643fc9c1cbec0 (patch) | |
tree | a617b28de7d8182e0f039d7a50683ee220818cf4 /mcs/tests/test-453.cs | |
parent | 2cd275642a10bd4d13c9a8cd3744b758380c4af0 (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.cs | 17 |
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 (); + } +} + |