in v1, the following was legal (in that: it worked) in razor, in a code region:
string foo = @Some.Complex.Expression;
obviously the @ is redundant, but: it worked. When upgrading to v2, it errors (which I could respect), but in the wrong way
. It should
say something about the @ being illegal in that syntax; instead, this can manifest in "} expected", especially if this is inside an if-block etc. The correct code is of course:
string foo = Some.Complex.Expression;
but the error message "} expected" makes the developer look for the wrong thing.