Bug 23764 - Conditional Operator fails to compile (3.10)
Summary: Conditional Operator fails to compile (3.10)
Status: RESOLVED DUPLICATE of bug 23319
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- critical
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2014-10-11 20:20 UTC by Cody Beyer (MSFT)
Modified: 2014-10-13 05:55 UTC (History)
2 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 Cody Beyer (MSFT) 2014-10-11 20:20:17 UTC
The following method should compile without issue:

		public void CompileTest()
			int ofs1 = 0;
			object[,] v1 = new object[3,4];
			object item = ofs1 == 0 ? v1[0, 1] : v1[0,1];


Unexpected symbol `?' (CS1525) (ParseTest)
Unexpected symbol `1' (CS1525) (ParseTest)
Unexpected symbol `1' (CS1525) (ParseTest)

Comment 1 Marek Safar 2014-10-13 05:55:08 UTC

*** This bug has been marked as a duplicate of bug 23319 ***