Comments (3)
The recovery here is poor. One of two things should have happened:
- The missing brace implicitly inserted before
private
, and recovery allows IntelliSense to be aware of theSwitchTime
method. - The missing brace is not implicitly inserted before
private
, and recovery allows IntelliSense to be aware ofSwitchTime
as a local function.
I'm guessing the latter did actually happen, but SwitchTime
was filtered out of completion due to typing this.
.
from roslyn.
Accessibility modifiers should ensure that we do '1'. If not, that's a parser bug.
from roslyn.
I have a feeling that recently VS philosophy is that we only write code top to bottom and never edit it afterwards
This is not the case. This is just an example of poor error recovery due to the language getting more constructs that are ambiguous.
from roslyn.
Related Issues (20)
- CS8602 should look deeper ("Dereference possibly null reference") HOT 3
- Microsoft.VisualStudio.LanguageServices.DevKit.csproj attempted to copy files to output directory during design time build HOT 1
- Reference highlighting doesn't work for some types from constructor expression
- Reference highlighting doesn't work from primary constructor base call constructor call
- `InvalidOperationException` in `SemanticTokensHelpers` when applying embedded classification on verbatim string
- Should collapse separate comment blocks separately
- Anonymous-Params-delegate is generated incorrectly with AllowRefStructFlag HOT 3
- Flaky test: Microsoft.CodeAnalysis.MSBuild.UnitTests.NewlyCreatedProjectsFromDotNetNew.ValidateVisualBasicTemplateProjects HOT 1
- Diagnostics from C# interactive window won't go away
- [Automated] PRs inserted in VS build main-35220.189
- Emission of NullabilityAttribute(2) on unconstrained generic type parameters causes incorrect runtime reporting of nullability in .NET 9
- When executing "Format document" of "Code cleanup" on save, it does not honor editorconfig, if source file build action is set to "None"
- For loops autofill is different when inside a loop
- IncrementalGenerator stopped working in VS 17.11 HOT 1
- Deconstruct works inconsistently in patterns and in deconstruction into tuple
- CS9203 False Positive HOT 1
- Microsoft.Cci.PdbWriter.GetAssemblyReferenceAlias throws Null Reference exception HOT 2
- Error reporting stops working HOT 3
- [Automated] PRs inserted in VS build feature.debugger.main-35223.06
- Collection expressions may result in unnecessary tail increment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslyn.