From 16f4167a6f97b09d95a5fc34761b557d50ebd1ef Mon Sep 17 00:00:00 2001 From: "Alexander.Shvedov" Date: Sun, 29 Dec 2024 18:22:19 +0100 Subject: [PATCH] [dotnet] Fix breaking change due to `field` keyword GitOrigin-RevId: e7e80ddd0c3de2da49d99ae65bfb3ad8485a8ecc --- .../src/FSharp/FSharp.Psi/src/Impl/Cache2/Parts/EnumPart.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Impl/Cache2/Parts/EnumPart.cs b/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Impl/Cache2/Parts/EnumPart.cs index d05de49f13..37d15c73d9 100644 --- a/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Impl/Cache2/Parts/EnumPart.cs +++ b/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Impl/Cache2/Parts/EnumPart.cs @@ -38,7 +38,7 @@ public IEnumerable Fields if (GetDeclaration() is IFSharpTypeDeclaration { TypeRepresentation: IEnumRepresentation repr }) foreach (var memberDeclaration in repr.EnumCases) if (memberDeclaration.DeclaredElement is { } field) - yield return (IField) field; + yield return (IField) @field; } }