http://bugzilla.novell.com/show_bug.cgi?id=620025

http://bugzilla.novell.com/show_bug.cgi?id=620025#c0


           Summary: [Regression] gmcs ignores implicit operators
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


The following cannot be compiled anymore with trunk. It should print 'true'
when executed.



using System;

class Program
{
    public class BaseClass
    {
        public static implicit operator string (BaseClass c)
        {
            return "I'm implicit";
        }
    }

    public static void Main (string [] args)
    {
        Console.WriteLine ("Equal? {0}", new BaseClass () == "I'm implicit");
    }
}

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to