[Mono-bugs] [Bug 46923][Nor] New - MCS fails on explicit cast to delegate
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 25 Jul 2003 15:39:46 -0400 (EDT)
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 mono@terrarium.f9.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=46923
--- shadow/46923 Fri Jul 25 15:39:46 2003
+++ shadow/46923.tmp.27486 Fri Jul 25 15:39:46 2003
@@ -0,0 +1,44 @@
+Bug#: 46923
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: Debian Sid
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mono@terrarium.f9.co.uk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS fails on explicit cast to delegate
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+MCS gives a parse error when it encounters code that explicitly casts and object to a
+delegate and calls it in the same operation
+
+Steps to reproduce the problem:
+Compile the attached file with MCS
+
+Actual Results:
+syntax error, expecting BASE BOOL BYTE CHAR CHECKED DECIMAL DELEGATE
+DOUBLE FALSE FLOAT INT LONG NEW NULL OBJECT SBYTE SHORT SIZEOF
+STRING THIS TRUE TYPEOF UINT ULONG UNCHECKED USHORT VOID
+OPEN_PARENS TILDE PLUS MINUS BANG BITWISE_AND STAR OP_INC OP_DEC
+LITERAL_INTEGER LITERAL_FLOAT LITERAL_DOUBLE LITERAL_DECIMAL
+LITERAL_CHARACTER LITERAL_STRING IDENTIFIER
+TestCase.cs(14) error CS1002: Expecting `;'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+On the microsoft runtime it compiles and executes fine. Compiling on windows and
+running on mono also works
+
+How often does this happen?
+Always
+
+Additional Information: