Bug 15582 - InvalidOperationException: Operation Equality not defined for System.Char and System.Char
Summary: InvalidOperationException: Operation Equality not defined for System.Char and...
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Core ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2013-10-22 05:56 UTC by Prashant Cholachagudda
Modified: 2013-11-12 14:48 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Prashant Cholachagudda 2013-10-22 05:56:52 UTC
Using Expression.Equal method with `char` constants ends up with InvalidOperationException in Xamarin.iOS but same works on Mono

For example following line throws System.InvalidOperationException: Operation Equality not defined for System.Char and System.Char

Expression.Equal(Expression.Constant(' '), Expression.Constant(' '));
Comment 1 Sebastien Pouliot 2013-10-22 07:40:07 UTC
If that only happens on device (.e.g working on the simulator) then it could be linker related (there's some reflection usage in Expression).
Comment 2 Prashant Cholachagudda 2013-10-22 07:55:06 UTC
It happens both on simulator and the device. 

I'm using Version: (Business Edition)
Hash: cea17d0
Build date: 2013-18-10 17:54:48-0400
Comment 3 Marek Safar 2013-11-12 14:48:29 UTC
Fixed in master