Permalink
Browse files

Update to SRM 1.6.0 and Roslyn 2.9. Adjust decompiler to new code pat…

…tern used for lifted nullable comparisons.
  • Loading branch information...
dgrunwald committed Oct 14, 2018
1 parent 12e74da commit ef866040b4b65d049e7c6b3b95e192f25e89e80d
@@ -37,10 +37,10 @@
<ItemGroup>
<PackageReference Include="DiffLib" Version="2017.7.26.1241" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="2.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.9.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="2.9.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
<PackageReference Include="System.Collections.Immutable" Version="1.3.1" />
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
<PackageReference Include="NUnit" Version="3.9.0" />
</ItemGroup>
@@ -322,9 +322,16 @@ public static void NumberBasic(decimal? a, decimal? b)
if (a == b) {
Console.WriteLine();
}
#if ROSLYN
// Roslyn 2.9 started invoking op_Equality even if the source code says 'a != b'
if (!(a == b)) {
Console.WriteLine();
}
#else
if (a != b) {
Console.WriteLine();
}
#endif
if (a > b) {
Console.WriteLine();
}
@@ -399,7 +406,12 @@ public static void NumberConst(decimal? a)
public static void NumberValueBasic(decimal? a, decimal? b)
{
Console.WriteLine(a == b);
#if ROSLYN
// Roslyn 2.9 started invoking op_Equality even if the source code says 'a != b'
Console.WriteLine(!(a == b));
#else
Console.WriteLine(a != b);
#endif
Console.WriteLine(a > b);
Console.WriteLine(!(a > b));
Oops, something went wrong.

0 comments on commit ef86604

Please sign in to comment.