[Mono-bugs] [Bug 355835] New: Incompatibility with .NET
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 23 19:44:35 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: thisaddressisnotmine at td.selfip.net
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list