[Mono-bugs] [Bug 437875] New: Incorrect error reported for '??' operator

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 22 14:56:35 EDT 2008


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


           Summary: Incorrect error reported for '??' operator
           Product: Mono: Compilers
           Version: 2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lluis at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


See this test case:

using System;

class App
{
        public static void Main (string[] args)
        {
                EventHandler h = new EventHandler (Test) ?? Test;
        }

        public static void Test (object s, EventArgs a)
        {
        }
}

mcs fails with the following error:

app.cs(10,65): error CS0019: Operator `??' cannot be applied to operands of
type `System.EventHandler' and `method group'

Compiles fine with csc.


-- 
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