diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-02-27 00:12:07 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-02-27 00:12:07 +0300 |
commit | 961f0c0a1c933ca5e3b3d4bf2609fb3a6df3e7e6 (patch) | |
tree | 9dc86e4f0c56f851e85d7226a0b37345889986a0 /mcs/errors/bug19.cs | |
parent | 2839c67ec67138c8a7000b0c3579e656aa83b453 (diff) |
Add new bug file to check; New test to excercise the enum bug that I just
fixed, plus:
2002-02-26 Miguel de Icaza <miguel@ximian.com>
* ecore.cs (Expression.ConvertExplicit): Bug fix, thanks for
spotting this Paolo.
(Expression.ImplicitNumericConversion): Perform comparissions of
the type using the underlying type in the case of an enumeration
rather than using the enumeration type for the compare.
Cope with the underlying == type case, which is not possible to
catch before.
(Expression.ConvertNumericExplicit): Perform comparissions of
the type using the underlying type in the case of an enumeration
rather than using the enumeration type for the compare.
svn path=/trunk/mcs/; revision=2696
Diffstat (limited to 'mcs/errors/bug19.cs')
-rwxr-xr-x | mcs/errors/bug19.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/bug19.cs b/mcs/errors/bug19.cs new file mode 100755 index 00000000000..15755b6faaa --- /dev/null +++ b/mcs/errors/bug19.cs @@ -0,0 +1,18 @@ +namespace N1 +{ + public enum A + { + A_1, A_2, A_3 + } + + public class B + { + const A b = A.A_1; + } +} + + + + + + |