diff options
Diffstat (limited to 'mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs')
-rw-r--r-- | mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs b/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs index 4be6da4cf77..c22c8fc653d 100644 --- a/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs +++ b/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs @@ -503,7 +503,10 @@ namespace Mono.CSharp OutputMemberAccessModifier( attributes ); OutputFieldScopeModifier( attributes ); - OutputTypeNamePair( field.Type, GetSafeName (field.Name) ); + if (IsCurrentEnum) + Output.Write(field.Name); + else + OutputTypeNamePair( field.Type, GetSafeName (field.Name) ); CodeExpression initExpression = field.InitExpression; if ( initExpression != null ) { |