rsdn / nemerle

Nemerle language. Main repository.
http://nemerle.org
Other
618 stars 89 forks source link

[VisualStudio] Incorrect code check #224

Open NN--- opened 12 years ago

NN--- commented 12 years ago
do {  } while (true);

This code is correct and compiles fine but VS doesn't like it.

VladD2 commented 12 years ago

В чем заключается "doesn't like"?

NN--- commented 12 years ago

Подкрашивает красным цветом.

Error   8   parse error near `(...)' group: unexpected token after type declaration (you forget a closing bracket?).    C:\Projects\test\ConsoleApplication15\ConsoleApplication15\Class1.n 1   15  ConsoleApplication15
Error   6   parse error near `{...}' group: unexpected token after type declaration (you forget a closing bracket?).    C:\Projects\test\ConsoleApplication15\ConsoleApplication15\Class1.n 1   4   ConsoleApplication15
Error   5   parse error near keyword `do': expecting type declaration   C:\Projects\test\ConsoleApplication15\ConsoleApplication15\Class1.n 1   1   ConsoleApplication15
Error   7   parse error near keyword `while': expecting type declaration    C:\Projects\test\ConsoleApplication15\ConsoleApplication15\Class1.n 1   9   ConsoleApplication15