You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests\RoslynCompatibility\ExpressionsInRequires.cs(36,3) : error CC1040: Reuse of existing local variable 'local0' in contract.
Tests\RoslynCompatibility\ExpressionsInRequires.cs(41,3) : error CC1025: After contract block, found use of local variable 'local1' defined in contract block
Tests\RoslynCompatibility\ExpressionsInRequires.cs(30,3) : error CC1004: Malformed contract. Found Requires after assignment in method 'Tests.Sources.WithExpressions.A(System.Boolean)'.
Please note, that the error would happen only for Expression<Func<..>> but not for lambda expression convertible to Func<..>.
Following code works fine in VS2013 but fails to compile in VS2015:
The error from ccrewrite is:
Please note, that the error would happen only for
Expression<Func<..>>but not for lambda expression convertible toFunc<..>.