Bug in type var?
Options
LINQPad4: It seems var isn't working...
Always shows ") expected."
Without var, starting from from, query runs ok.
Query with the var runs fine in VS console app...
Always shows ") expected."
Without var, starting from from, query runs ok.
Query with the var runs fine in VS console app...
Comments
-
Are you sure the error message isn't
) or end of expression expected (change the Query Language to 'C# Statements' for multi-statement queries)
?
If you are using var, then you definitely should be using 'C# Statements' -
Thank you! Had not noticed that subtlety...
-
But not: msg is just ") expected." and after running ") esperado" - apparently it recognizes my Windows is in portuguese.