Basic c# failing to compile and reporting incorrect error: known issue/bug?

  • Thread starter Thread starter RyanRogers()
  • Start date Start date
R

RyanRogers()

Guest
The following extremely simple bit of code demonstrates what must be a bug/defect in VS. Two identical (except for variable names) string assignments; one is fine, the other shows errors such as "CS0201 Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement," "CS1525 Invalid expression term ''," and "CS1002 ; expected."

Screenshot attached.

Is this a known issue?

It's not blocking because a separate line can be created and (somehow?) works, but it seems like a pretty severe issue that could cause a lot of frustration to new developers trying to learn the language and tool.

1494749.png

Continue reading...
 
Back
Top