Skip to content

Commit

Permalink
Add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer committed Feb 15, 2021
1 parent 581a1de commit 3b2f00e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,12 @@ public void NullCoalescing()
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
Expand Down

0 comments on commit 3b2f00e

Please sign in to comment.