Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS1525 "Invalid expression term '/'" at wrong line when there is other comments prior to it #31774

Open
Gnbrkm41 opened this issue Dec 13, 2018 · 0 comments
Labels
Area-Compilers Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings. help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@Gnbrkm41
Copy link

Gnbrkm41 commented Dec 13, 2018

Version Used:
Visual Studio 2017 Community 15.9.4 with ReSharper Ultimate 2018.2.3
Visual Studio 2019 16.0.0 Preview 1.1
Steps to Reproduce:

  1. Type some comments (Can be either block comments or single-line comment)
  2. Type some code with a single forward slash in front of it

Expected Behavior:
CS1525 "Invalid expression term '/'" error should be displayed at the line where the code with incomplete comment header is (i.e. division operator with nothing in front of it?)

Actual Behavior:

2018-12-14 082359
(Ignore the red squiggle on the right side, at line 33; that one's ReSharper's warning)

2018-12-14 082806

2018-12-14 082720

The warning is displayed at the end of the line prior to the comment.

@gafter gafter added Bug Area-Compilers Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings. labels Dec 14, 2018
@gafter gafter added this to the 16.0 milestone Dec 14, 2018
@gafter gafter added the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Feb 26, 2019
@gafter gafter modified the milestones: 16.0, Backlog Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings. help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

2 participants