Bug 24960 - [Sketches] various C# compiler bugs to be fixed by switching to Roslyn
Summary: [Sketches] various C# compiler bugs to be fixed by switching to Roslyn
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Sketches ()
Version: 5.7
Hardware: PC Mac OS
: High major
Target Milestone: master
Assignee: Sketches Dev List
URL:
: 22646 22651 22767 22768 22863 22870 22935 22936 23007 23012 23039 23044 25342 ()
Depends on:
Blocks:
 
Reported: 2014-12-01 13:00 UTC by Aaron Bockover [MSFT]
Modified: 2018-01-30 15:47 UTC (History)
6 users (show)

Tags:
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 Developer Community or GitHub 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:
Status:
RESOLVED INVALID

Description Aaron Bockover [MSFT] 2014-12-01 13:00:05 UTC
We are aware of many issues with mcs backing the C# support for Sketches. Our plan is to not address any of them in mcs' "REPL" mode (Mono.CSharp.Evaluator) but instead switch the compiler over to Roslyn early next year. This will take some time. As such we will just track any C# issues here, marking specifics as duplicates of this bug.

Some specific issues we are aware of:

* const is not supported
* if/else must have accompanying curly braces
  otherwise the "else" statement will not be
  parsed properly when on a separate line
* anonymous types are not supported
* instance field writes are not supported
* line numbers in warnings/errors are always "1"
* top-level functions are not supported
* lots of issues with class/struct/enum definitions
Comment 1 Aaron Bockover [MSFT] 2014-12-01 13:00:48 UTC
*** Bug 22646 has been marked as a duplicate of this bug. ***
Comment 2 Aaron Bockover [MSFT] 2014-12-01 13:01:30 UTC
*** Bug 22863 has been marked as a duplicate of this bug. ***
Comment 3 Aaron Bockover [MSFT] 2014-12-01 13:01:51 UTC
*** Bug 22870 has been marked as a duplicate of this bug. ***
Comment 4 Aaron Bockover [MSFT] 2014-12-01 13:02:47 UTC
*** Bug 22935 has been marked as a duplicate of this bug. ***
Comment 5 Aaron Bockover [MSFT] 2014-12-01 13:03:07 UTC
*** Bug 22936 has been marked as a duplicate of this bug. ***
Comment 6 Aaron Bockover [MSFT] 2014-12-01 13:05:09 UTC
*** Bug 23012 has been marked as a duplicate of this bug. ***
Comment 7 Aaron Bockover [MSFT] 2014-12-01 13:05:56 UTC
*** Bug 23044 has been marked as a duplicate of this bug. ***
Comment 8 Aaron Bockover [MSFT] 2014-12-01 13:21:20 UTC
*** Bug 22768 has been marked as a duplicate of this bug. ***
Comment 9 Aaron Bockover [MSFT] 2014-12-01 13:25:29 UTC
*** Bug 22767 has been marked as a duplicate of this bug. ***
Comment 10 Aaron Bockover [MSFT] 2014-12-01 13:25:53 UTC
*** Bug 23007 has been marked as a duplicate of this bug. ***
Comment 11 Aaron Bockover [MSFT] 2014-12-01 13:26:18 UTC
*** Bug 23039 has been marked as a duplicate of this bug. ***
Comment 12 Aaron Bockover [MSFT] 2014-12-01 13:28:23 UTC
*** Bug 22651 has been marked as a duplicate of this bug. ***
Comment 13 Sandy Armstrong [MSFT] 2014-12-12 11:06:29 UTC
*** Bug 25342 has been marked as a duplicate of this bug. ***
Comment 14 Sandy Armstrong [MSFT] 2014-12-19 10:56:56 UTC
*** Bug 25342 has been marked as a duplicate of this bug. ***