This project is read-only.
1
Vote

Space in inherited class declaration in Script breaks the binder

description

Source: (parsed as Script, not Document)
class AB C : object { }
Pressing Ctrl+Space in the space between AB and C will throw from http://source.roslyn.codeplex.com/#Microsoft.CodeAnalysis.CSharp/Binder/BuckStopsHereBinder.cs,192

It looks like c : object is parsed as a LabeledStatement, which thoroughly confuses the Binder.

The simplest way to get a Script editor window to repro this is to build and run https://github.com/SLaks/VSEmbed (requires Dev14 installed, but has no other prerequisites), then paste that text.

comments