Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 8166 [details]
Source file that generates error in 3.8.1 but not 3.8.0
I have code that works in MS .NET and in mono version 3.8.0, but fails to compile on mono 3.8.1 (64 bit, on mac OSX) when a ternary operator is used.
In particular, a line like:
var matchScore1 = ( 1 > 0 ) ? table[5, 1] : 0;
Causes the following error in the attached simple test case:
test.cs(16,40): error CS1525: Unexpected symbol `?'
test.cs(16,51): error CS1525: Unexpected symbol `1'
Note that there is no error in a 32 bit version on mac osx for 3.8.0, but there is in a 64 bit on mac osx for 3.8.1. However, I don't think suspect the 32/64 bit difference matters here.
Fixed in master
*** Bug 23339 has been marked as a duplicate of this bug. ***
*** Bug 23621 has been marked as a duplicate of this bug. ***
Starting a tally of Desk cases in case we want to bring up this bug for hotfix consideration:
*** Bug 23764 has been marked as a duplicate of this bug. ***
*** Bug 23746 has been marked as a duplicate of this bug. ***
*** Bug 24555 has been marked as a duplicate of this bug. ***