[Mono-bugs] [Bug 80742][Nor] New - CS1533: Invoke cannot be called directly on a delegate

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 6 13:07:56 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by frederik.carlier at ugent.be.

http://bugzilla.ximian.com/show_bug.cgi?id=80742

--- shadow/80742	2007-02-06 13:07:56.000000000 -0500
+++ shadow/80742.tmp.31818	2007-02-06 13:07:56.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 80742
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: frederik.carlier at ugent.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS1533: Invoke cannot be called directly on a delegate
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When compiling the attached program, gmcs returns error CS1533. The code
+compiles fine under .NET 2.0
+
+Steps to reproduce the problem:
+C:\Documents and Settings\Frederik Carlier>csc InvokeTest.cs
+Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
+for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
+Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
+
+
+C:\Documents and Settings\Frederik Carlier>gmcs InvokeTest.cs
+-r:System.Windows.
+Forms
+InvokeTest.cs(20,9): error CS1533: Invoke cannot be called directly on a
+delegat
+e
+Compilation failed: 1 error(s), 0 warnings
+
+
+Actual Results:
+gmcs and csc behave differently
+
+Expected Results:
+gmcs to behave like csc (unless there is a bug in csc, of course)
+
+How often does this happen? 
+Always
+
+Additional Information:
+See attached file.


More information about the mono-bugs mailing list