https://bugzilla.novell.com/show_bug.cgi?id=355835
Summary: Incompatibility with .NET
Product: Mono: Compilers
Version: 1.2.6
Platform: All
OS/Version: openSUSE 10.3
Status: NEW
Severity: Minor
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Mono C# compiler (both mcs and gmcs) can't compile the following code:
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
object str = "Don't";
Console.WriteLine(str as string + "panic");
}
}
}
with the following error message:
Program.cs(10,45): error CS1002: Expecting `;'
While .NET compiles this code without errors.
Workaround is to put extra brackets:
(str as string) + "panic"
--
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