[Mono-bugs] [Bug 615047] New: dynamic not allowed in user-defined operators

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 17 06:15:35 EDT 2010



           Summary: dynamic not allowed in user-defined operators
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

sample code:

public class C {
public static decimal operator -(dynamic p1, C p2) { return decimal.MaxValue; }

results in:
test.cs(4,23): error CS1964: User-defined operator `C.operator -(dynamic, C)'
cannot convert to or from the dynamic type

looks like CS1964 is to be reported only for user-defined conversion operators

Configure bugmail: http://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