mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
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
19 lines
105 B
C#
Executable File
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;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|