Bug 53202

Summary: Number minus Enum gives wrong value
Product: [Mono] Compilers Reporter: Denis Zykov <deniszykov>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 4.0.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:

Description Denis Zykov 2017-03-09 18:08:03 UTC
Following code:

csharp> (int)ConsoleColor.DarkCyan
3
csharp> 5 - ConsoleColor.DarkCyan
-2

in .NET gives 2, which is correct result.

Number plus Enum, Enum plus Number, Enum minus Number are fine.
Comment 1 Marek Safar 2017-06-01 14:36:42 UTC
Fixed in master and 2017-04 branch