Files
mono/mcs/errors/bug19.cs
T
Miguel de Icaza 961f0c0a1c Add new bug file to check; New test to excercise the enum bug that I just
fixed, plus:

2002-02-26  Miguel de Icaza  <[email protected]>

	* 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
2002-02-26 21:12:07 +00:00

19 lines
105 B
C#
Executable File

namespace N1
{
public enum A
{
A_1, A_2, A_3
}
public class B
{
const A b = A.A_1;
}
}