Skip to content

Commit

Permalink
fix nullable errors after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdodds committed Jun 28, 2023
1 parent 65cea2f commit 19b5039
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Build/Evaluation/Expander.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5463,8 +5463,8 @@ internal static class IntrinsicFunctionOverload
// Otherwise preserve prior behavior of double before long.
// For reuse, the comparer is cached in a non-generic type.
// Both comparer instances can be cached to support change wave testing.
private static IComparer<MemberInfo> s_comparerLongBeforeDouble;
private static IComparer<MemberInfo> s_comparerDoubleBeforeLong;
private static IComparer<MemberInfo>? s_comparerLongBeforeDouble;
private static IComparer<MemberInfo>? s_comparerDoubleBeforeLong;

internal static IComparer<MemberInfo> IntrinsicFunctionOverloadMethodComparer => IsIntrinsicFunctionOverloadsEnabled() ? LongBeforeDoubleComparer : DoubleBeforeLongComparer;

Expand All @@ -5479,7 +5479,7 @@ internal static class IntrinsicFunctionOverload

private static TypeCode SelectTypeOfFirstParameter(MemberInfo member)
{
MethodBase method = member as MethodBase;
MethodBase? method = member as MethodBase;
if (method == null)
{
return TypeCode.Empty;
Expand Down

0 comments on commit 19b5039

Please sign in to comment.