Browse Source

Add test case.

pull/2289/head
Siegfried Pammer 5 years ago
parent
commit
3b2f00e44f
  1. 6
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs

6
ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs

@ -894,6 +894,12 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -894,6 +894,12 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
Test<Func<string, string, string>>((string a, string b) => a ?? b, (string a, string b) => a ?? b);
Test<Func<int?, int>>((int? a) => a ?? 1, (int? a) => a ?? 1);
}
public void NullableLifting(Guid? a, Guid? b)
{
ToCode(null, () => a == b);
ToCode(null, () => (Guid)a == (Guid)b);
}
}
internal static class Extensions

Loading…
Cancel
Save