This project is read-only.
1
Vote

Squiggle for missing semicolon appears on next line

description

class Program
{
    static void Main()
    {
        System.Console.WriteLine("Woops!")
        var i = 3;
        ~~~
    }
}
RESULTS:
squiggle for "CS1002: ; expected" appears on "var" instead of previous token...

This isn't incorrect, but I always find this jarring... I usually don't have the Error List up when typing in the editor, so I just see "var" squiggled, and think that type inference has failed... Then I have to mouse hover over "var" to figure out that I just forgot a semi-colon. This is made worse by the delay in squiggles appearing (I've usually gone on to another line and typed 1 or more additional statements before this squiggle appears).

The old compiler got it right.

comments