From 3b2f00e44fd634cc924f5e6dea38c1af09097252 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Mon, 15 Feb 2021 19:12:58 +0100 Subject: [PATCH] Add test case. --- .../TestCases/Pretty/ExpressionTrees.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs index bcf20b512e..525743cd4b 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs @@ -894,6 +894,12 @@ public void NullCoalescing() Test>((string a, string b) => a ?? b, (string a, string b) => a ?? b); Test>((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