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