GetHashCode should not reference mutable fields (#5331)

This commit is contained in:
Marco Carvalho
2023-06-22 18:36:07 +02:00
committed by GitHub
parent 649d372f7d
commit 58907e2c29
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ namespace Spv.Generator
{
internal struct ConstantKey : IEquatable<ConstantKey>
{
private Instruction _constant;
private readonly Instruction _constant;
public ConstantKey(Instruction constant)
{