Giter Site home page Giter Site logo

Comments (3)

sharwell avatar sharwell commented on August 26, 2024

The recovery here is poor. One of two things should have happened:

  1. The missing brace implicitly inserted before private, and recovery allows IntelliSense to be aware of the SwitchTime method.
  2. The missing brace is not implicitly inserted before private, and recovery allows IntelliSense to be aware of SwitchTime 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.

CyrusNajmabadi avatar CyrusNajmabadi commented on August 26, 2024

Accessibility modifiers should ensure that we do '1'. If not, that's a parser bug.

from roslyn.

CyrusNajmabadi avatar CyrusNajmabadi commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.