[Mono-bugs] [Bug 412134] New: Compiler regression in handling implicit enum conversions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 05:37:08 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=412134


           Summary: Compiler regression in handling implicit enum
                    conversions
           Product: Mono: Compilers
           Version: 2.0
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: skolima at gmail.com
         QAContact: mono-bugs at lists.ximian.com
                CC: skolima at gmail.com
          Found By: ---


Created an attachment (id=229968)
 --> (https://bugzilla.novell.com/attachment.cgi?id=229968)
test case

This regression exists in both 2.0 branch and svn HEAD.

Attached is a test case (cut from production code, but quite minimalistic).

Compile with gmcs.

Actual result:
CashierShift.cs(44,45): error CS0019: Operator `==' cannot be applied to
operands of type `CashRegister.Entities.CashierShiftStatus' and
`CashRegister.Entities.CashierShiftStatus.Code'
Compilation failed: 1 error(s), 0 warnings
Expected result (on mono 1.9.1, MS.Net):
compiles without errors


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list