https://bugzilla.novell.com/show_bug.cgi?id=663105
https://bugzilla.novell.com/show_bug.cgi?id=663105#c0 Summary: mcs won't compare a struct to null Classification: Mono Product: Mono: Compilers Version: unspecified 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: Third Party Developer/Partner Blocker: --- Created an attachment (id=407411) --> (http://bugzilla.novell.com/attachment.cgi?id=407411) source to demonstrate the bug Description of Problem: ccs can compare a struct to null, mcs can't. Steps to reproduce the problem: - unpack the archive - open Frameworks.sln in Visual Studio (2010, use Frameworks08.sln for VisStudio 2008) - set config to 'debug/x86' - build - open Program.sln in Visual Studio, set config as above, build - run Program.exe, you'll see evaluating == null Field operator == (Field,Field) evaluating != null Field operator != (Field,Field) Field operator == (Field,Field) Expected: 'True False', Observed: True False, SUCCESS - build Program.sln with MonoDevelop (note, you'll get CS0472 on lines 12 & 14) - run Program.exe evaluating == null evaluating != null Expected: 'True False', Observed: False True, FAILURE -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
