3

I turned on C# 6.0 as Resharper suggested. I love the changes but it appears to me Visual Studio 2013 and C# 6.0 don't really like each other because when I use lambdas for operators like in

public static MVector operator +(MVector l, MVector r) => new MVector(l.X+r.X, l.Y+r.Y);

It says there should be a ';' instead of the lambda but doesn't underline it with red. I turned everything I could to lambdas in that file and got lots of errors but nothing is underlined which is weird.

Yuval Itzchakov
  • 146,575
  • 32
  • 257
  • 321
Preza8
  • 400
  • 1
  • 3
  • 13

1 Answers1

7

Visual Studio 2013 doesn't support C# 6.0. Visual Studio 2015 (which will RTM on 2015-07-20) does.

Visual Studio 2013 used to support some beta version of Roslyn, but that wasn't updated to the latest versions of Roslyn.

i3arnon
  • 113,022
  • 33
  • 324
  • 344