Skip to content

Commit

Permalink
Merge pull request #7432 from dotnet/backport/pr-7430-to-release/9.0.1xx
Browse files Browse the repository at this point in the history
[release/9.0.1xx] Update field references
  • Loading branch information
jaredpar authored Oct 8, 2024
2 parents 87f7ba0 + c9360d9 commit 3d61c57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ internal bool ShouldBeTrackedForAnalysis(bool hasCompletePointsToAnalysisResult)

public bool HasConstantValue => Symbol switch
{
IFieldSymbol field => field.HasConstantValue,
ILocalSymbol local => local.HasConstantValue,
IFieldSymbol fieldSymbol => fieldSymbol.HasConstantValue,
ILocalSymbol localSymbol => localSymbol.HasConstantValue,
_ => false,
};

Expand Down

0 comments on commit 3d61c57

Please sign in to comment.