From 9c924736cf25cfa650e9aa30546bc969a89af25d Mon Sep 17 00:00:00 2001 From: Copilot Date: Tue, 6 Oct 2026 16:53:42 +0200 Subject: [PATCH] Remove always-on WarningWhenCopyAndUpdateRecordChangesAllFields language feature flag --- .../Checking/Expressions/CheckExpressions.fs | 3 +-- src/Compiler/Driver/CompilerDiagnostics.fs | 13 +++---------- src/Compiler/FSComp.txt | 8 +++++++- src/Compiler/Facilities/DiagnosticsLogger.fs | 6 ------ src/Compiler/Facilities/DiagnosticsLogger.fsi | 10 ---------- src/Compiler/Facilities/LanguageFeatures.fs | 16 ++++++++++++---- src/Compiler/Facilities/LanguageFeatures.fsi | 5 ++++- src/Compiler/xlf/FSComp.txt.cs.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.de.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.es.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.fr.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.it.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.ja.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.ko.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.pl.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.pt-BR.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.ru.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.tr.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.zh-Hans.xlf | 5 ----- src/Compiler/xlf/FSComp.txt.zh-Hant.xlf | 5 ----- 20 files changed, 27 insertions(+), 99 deletions(-) diff --git a/src/Compiler/Checking/Expressions/CheckExpressions.fs b/src/Compiler/Checking/Expressions/CheckExpressions.fs index 5191123f5ae..eb11ee8d8da 100644 --- a/src/Compiler/Checking/Expressions/CheckExpressions.fs +++ b/src/Compiler/Checking/Expressions/CheckExpressions.fs @@ -7222,8 +7222,7 @@ and TcRecordConstruction (cenv: cenv) (overallTy: TType) isObjExpr env tpenv wit // `TransformAstForNestedUpdates` creates record constructions with synthetic ranges. // Don't emit the warning for nested field updates, because it does not really make sense. if oldFldsList.IsEmpty && not m.IsSynthetic then - let enabledByLangFeature = g.langVersion.SupportsFeature LanguageFeature.WarningWhenCopyAndUpdateRecordChangesAllFields - warning(ErrorEnabledWithLanguageFeature(FSComp.SR.tcCopyAndUpdateRecordChangesAllFields(richTextOfQualifiedTyconRef tcref), m, enabledByLangFeature)) + warning(Error(FSComp.SR.tcCopyAndUpdateRecordChangesAllFields(richTextOfQualifiedTyconRef tcref), m)) if not (Zset.subset ns1 ns2) then error (Error(FSComp.SR.tcExtraneousFieldsGivenValues(), m)) diff --git a/src/Compiler/Driver/CompilerDiagnostics.fs b/src/Compiler/Driver/CompilerDiagnostics.fs index 3b46c9b64c4..17177e38c37 100644 --- a/src/Compiler/Driver/CompilerDiagnostics.fs +++ b/src/Compiler/Driver/CompilerDiagnostics.fs @@ -119,7 +119,6 @@ type Exception with | LetRecEvaluatedOutOfOrder(_, _, _, m) | DiagnosticWithText(_, _, m) | DiagnosticWithSuggestions(_, _, m, _, _) - | DiagnosticEnabledWithLanguageFeature(_, _, m, _) | SyntaxError(_, m) | InternalError(_, m) | InternalException(_, _, m) @@ -339,7 +338,6 @@ type Exception with | WrappedError(e, _) -> e.DiagnosticNumber | DiagnosticWithText(n, _, _) -> n | DiagnosticWithSuggestions(n, _, _, _, _) -> n - | DiagnosticEnabledWithLanguageFeature(n, _, _, _) -> n | IllegalFileNameChar(fileName, invalidChar) -> fst (FSComp.SR.buildUnexpectedFileNameCharacter (fileName, string invalidChar)) #if !NO_TYPEPROVIDERS | :? TypeProviderError as e -> e.Number @@ -368,7 +366,6 @@ type PhasedDiagnostic with | DefensiveCopyWarning _ -> 5 | DiagnosticWithText(n, _, _) - | DiagnosticEnabledWithLanguageFeature(n, _, _, _) | DiagnosticWithSuggestions(n, _, _, _, _) -> // 1178, tcNoComparisonNeeded1, "The struct, record or union type '%s' is not structurally comparable because the type parameter %s does not satisfy the 'comparison' constraint..." // 1178, tcNoComparisonNeeded2, "The struct, record or union type '%s' is not structurally comparable because the type '%s' does not satisfy the 'comparison' constraint...." @@ -408,11 +405,8 @@ type PhasedDiagnostic with | 3906 -> false // tcRecordExplicitFieldShadowsSpreadField - off by default | 3907 -> false // tcRecordExprSpreadFieldShadowsSpreadField - off by default | _ -> - match x.Exception with - | DiagnosticEnabledWithLanguageFeature(_, _, _, enabled) -> enabled - | _ -> - (severity = FSharpDiagnosticSeverity.Info && level > 0) - || (severity = FSharpDiagnosticSeverity.Warning && level >= x.WarningLevel) + (severity = FSharpDiagnosticSeverity.Info && level > 0) + || (severity = FSharpDiagnosticSeverity.Warning && level >= x.WarningLevel) member x.AdjustSeverity(options) = let severity = x.Severity @@ -1866,8 +1860,7 @@ type Exception with os.Append(NonUniqueInferredAbstractSlot4E().Format) - | DiagnosticWithText(_, s, _) - | DiagnosticEnabledWithLanguageFeature(_, s, _, _) -> os.Append s + | DiagnosticWithText(_, s, _) -> os.Append s | DiagnosticWithSuggestions(_, s, _, idText, suggestionF) -> os.Append s diff --git a/src/Compiler/FSComp.txt b/src/Compiler/FSComp.txt index 1ebca3aa194..e4775bfb215 100644 --- a/src/Compiler/FSComp.txt +++ b/src/Compiler/FSComp.txt @@ -1532,6 +1532,7 @@ csTypeHasNullAsTrueValue,"The type '%s' uses 'null' as a representation value bu csTypeHasNullAsExtraValue,"The type '%s' supports 'null' but a non-null type is expected" 3300,chkInvalidFunctionParameterType,"The parameter '%s' has an invalid type '%s'. This is not permitted by the rules of Common IL." 3301,chkInvalidFunctionReturnType,"The function or method has an invalid return type '%s'. This is not permitted by the rules of Common IL." +3302,packageManagementRequiresVFive,"The 'package management' feature requires language version 5.0 or above" 3303,fromEndSlicingRequiresVFive,"The 'from the end slicing' feature requires language version 'preview'." 3304,poundiNotSupportedByRegisteredDependencyManagers,"#i is not supported by the registered PackageManagers" 3343,tcRequireMergeSourcesOrBindN,"The 'let! ... and! ...' construct may only be used if the computation expression builder defines either a '%s' method or appropriate 'MergeSources' and 'Bind' methods" @@ -1553,18 +1554,21 @@ optsAlwaysInline,"Always inline 'inline' functions" nativeResourceFormatError,"Stream does not begin with a null resource and is not in '.RES' format." nativeResourceHeaderMalformed,"Resource header beginning at offset %s is malformed." formatDashItem," - %s" +featurePackageManagement,"package management" featureFromEndSlicing,"from-end slicing" featureNullnessChecking,"nullness checking" +featureResumableStateMachines,"resumable state machines" featureRuntimeAsync,"runtime async" featureStringInterpolation,"string interpolation" featureWitnessPassing,"witness passing for trait constraints in F# quotations" featureAdditionalImplicitConversions,"additional type-directed conversions" featureReallyLongList,"list literals of any size" featureErrorOnDeprecatedRequireQualifiedAccess,"give error on deprecated access of construct with RequireQualifiedAccess attribute" +featureSelfTypeConstraints,"self type constraints" featureMatchNotAllowedForUnionCaseWithNoData,"Pattern match discard is not allowed for union case that takes no data." featureCSharpExtensionAttributeNotRequired,"Allow implicit Extension attribute on declaring types, modules" featureErrorForNonVirtualMembersOverrides,"Raises errors for non-virtual members overrides" -featureWarningWhenCopyAndUpdateRecordChangesAllFields,"Raises warnings when an copy-and-update record expression changes all fields of a record." +featureNonInlineLiteralsAsPrintfFormat,"String values marked as literals and IL constants as printf format" featureWarningWhenMultipleRecdTypeChoice,"Raises warnings when multiple record type matches were found during name resolution because of overlapping field names." featureConstraintIntersectionOnFlexibleTypes,"Constraint intersection on flexible types" featureChkNotTailRecursive,"Raises warnings if a member or function has the 'TailCall' attribute, but is not being used in a tail recursive way." @@ -1635,6 +1639,8 @@ forFormatInvalidForInterpolated4,"Interpolated strings used as type IFormattable 3501,tcResumableCodeArgMustHaveRightName,"Invalid resumable code. Resumable code parameter must have name beginning with '__expand'" 3501,tcResumableCodeArgMustHaveRightKind,"Invalid resumable code. A resumable code parameter must be of delegate or function type" 3501,tcResumableCodeContainsLetRec,"Invalid resumable code. A 'let rec' occurred in the resumable code specification" +3510,tcResumableCodeNotSupported,"Using resumable code or resumable state machines requires /langversion:preview" +3510,tcNoEagerConstraintApplicationAttribute,"Using methods with 'NoEagerConstraintApplicationAttribute' requires /langversion:6.0 or later" 3511,reprStateMachineNotCompilable,"This state machine is not statically compilable. %s. An alternative dynamic implementation will be used, which may be slower. Consider adjusting your code to ensure this state machine is statically compilable, or else suppress this warning." 3512,reprStateMachineNotCompilableNoAlternative,"This state machine is not statically compilable and no alternative is available. %s. Use an 'if __useResumableCode then else ' to give an alternative." 3513,tcResumableCodeInvocation,"Resumable code invocation. Suppress this warning if you are defining new low-level resumable code in terms of existing resumable code." diff --git a/src/Compiler/Facilities/DiagnosticsLogger.fs b/src/Compiler/Facilities/DiagnosticsLogger.fs index f0b0ece1cc3..08359a05178 100644 --- a/src/Compiler/Facilities/DiagnosticsLogger.fs +++ b/src/Compiler/Facilities/DiagnosticsLogger.fs @@ -129,9 +129,6 @@ exception DiagnosticWithSuggestions of number: int * message: RichText * range: | DiagnosticWithSuggestions(_, msg, _, _, _) -> msg.Text | _ -> "impossible" -/// A diagnostic that is raised when enabled manually, or by default with a language feature -exception DiagnosticEnabledWithLanguageFeature of number: int * message: RichText * range: range * enabledByLangFeature: bool - type ObsoleteDiagnosticInfo = | ObsoleteDiagnosticInfo of isError: bool * diagnosticId: string option * message: string option * urlFormat: string option @@ -155,9 +152,6 @@ let Error ((n, text): int * RichText, m) = DiagnosticWithText(n, text, m) let ErrorWithSuggestions ((n, message), m, id, suggestions) = DiagnosticWithSuggestions(n, message, m, id, suggestions) -let ErrorEnabledWithLanguageFeature ((n, message), m, enabledByLangFeature) = - DiagnosticEnabledWithLanguageFeature(n, message, m, enabledByLangFeature) - let inline protectAssemblyExploration dflt ([] f) = try f () diff --git a/src/Compiler/Facilities/DiagnosticsLogger.fsi b/src/Compiler/Facilities/DiagnosticsLogger.fsi index af8aa3ff1b9..10df1e8cdbb 100644 --- a/src/Compiler/Facilities/DiagnosticsLogger.fsi +++ b/src/Compiler/Facilities/DiagnosticsLogger.fsi @@ -48,13 +48,6 @@ val StopProcessing<'T> : exn /// Represents a diagnostic exception whose text comes via SR.* exception DiagnosticWithText of number: int * message: RichText * range: range -/// A diagnostic that is raised when enabled manually, or by default with a language feature -exception DiagnosticEnabledWithLanguageFeature of - number: int * - message: RichText * - range: range * - enabledByLangFeature: bool - /// Creates a diagnostic exception whose text comes via SR.* val Error: (int * RichText) * range -> exn @@ -104,9 +97,6 @@ exception ObsoleteDiagnostic of /// Creates a DiagnosticWithSuggestions whose text comes via SR.* val ErrorWithSuggestions: (int * RichText) * range * string * Suggestions -> exn -/// Creates a DiagnosticEnabledWithLanguageFeature whose text comes via SR.* -val ErrorEnabledWithLanguageFeature: (int * RichText) * range * bool -> exn - val inline protectAssemblyExploration: dflt: 'T -> f: (unit -> 'T) -> 'T val inline protectAssemblyExplorationF: dflt: (string * string -> 'T) -> f: (unit -> 'T) -> 'T diff --git a/src/Compiler/Facilities/LanguageFeatures.fs b/src/Compiler/Facilities/LanguageFeatures.fs index de94bed966e..46c949dcaa4 100644 --- a/src/Compiler/Facilities/LanguageFeatures.fs +++ b/src/Compiler/Facilities/LanguageFeatures.fs @@ -16,7 +16,9 @@ module internal FSharp.Compiler.Features [] type LanguageFeature = + | PackageManagement | FromEndSlicing + | ResumableStateMachines | RuntimeAsync | WitnessPassing | AdditionalTypeDirectedConversions @@ -27,10 +29,11 @@ type LanguageFeature = | AttributesToRightOfModuleKeyword | ReallyLongLists | ErrorOnDeprecatedRequireQualifiedAccess + | SelfTypeConstraints | MatchNotAllowedForUnionCaseWithNoData | CSharpExtensionAttributeNotRequired | ErrorForNonVirtualMembersOverrides - | WarningWhenCopyAndUpdateRecordChangesAllFields + | NonInlineLiteralsAsPrintfFormat | WarningWhenMultipleRecdTypeChoice | ConstraintIntersectionOnFlexibleTypes | WarningWhenTailRecAttributeButNonTailRecUsage @@ -120,23 +123,26 @@ type LanguageVersion(versionText, ?disabledFeaturesArray: LanguageFeature array) dict [ // F# 5.0 + LanguageFeature.PackageManagement, languageVersion50 LanguageFeature.WitnessPassing, languageVersion50 LanguageFeature.StringInterpolation, languageVersion50 // F# 6.0 LanguageFeature.AdditionalTypeDirectedConversions, languageVersion60 LanguageFeature.ExpandedMeasurables, languageVersion60 + LanguageFeature.ResumableStateMachines, languageVersion60 LanguageFeature.AttributesToRightOfModuleKeyword, languageVersion60 // F# 7.0 LanguageFeature.ReallyLongLists, languageVersion70 LanguageFeature.ErrorOnDeprecatedRequireQualifiedAccess, languageVersion70 + LanguageFeature.SelfTypeConstraints, languageVersion70 // F# 8.0 LanguageFeature.MatchNotAllowedForUnionCaseWithNoData, languageVersion80 LanguageFeature.CSharpExtensionAttributeNotRequired, languageVersion80 LanguageFeature.ErrorForNonVirtualMembersOverrides, languageVersion80 - LanguageFeature.WarningWhenCopyAndUpdateRecordChangesAllFields, languageVersion80 + LanguageFeature.NonInlineLiteralsAsPrintfFormat, languageVersion80 LanguageFeature.WarningWhenMultipleRecdTypeChoice, languageVersion80 LanguageFeature.WarningWhenTailRecAttributeButNonTailRecUsage, languageVersion80 LanguageFeature.ConstraintIntersectionOnFlexibleTypes, languageVersion80 @@ -290,8 +296,10 @@ type LanguageVersion(versionText, ?disabledFeaturesArray: LanguageFeature array) /// Get a string name for the given feature. static member GetFeatureString feature = match feature with + | LanguageFeature.PackageManagement -> FSComp.SR.featurePackageManagement () | LanguageFeature.FromEndSlicing -> FSComp.SR.featureFromEndSlicing () | LanguageFeature.NullnessChecking -> FSComp.SR.featureNullnessChecking () + | LanguageFeature.ResumableStateMachines -> FSComp.SR.featureResumableStateMachines () | LanguageFeature.RuntimeAsync -> FSComp.SR.featureRuntimeAsync () | LanguageFeature.WitnessPassing -> FSComp.SR.featureWitnessPassing () | LanguageFeature.AdditionalTypeDirectedConversions -> FSComp.SR.featureAdditionalImplicitConversions () @@ -301,11 +309,11 @@ type LanguageVersion(versionText, ?disabledFeaturesArray: LanguageFeature array) | LanguageFeature.AttributesToRightOfModuleKeyword -> FSComp.SR.featureAttributesToRightOfModuleKeyword () | LanguageFeature.ReallyLongLists -> FSComp.SR.featureReallyLongList () | LanguageFeature.ErrorOnDeprecatedRequireQualifiedAccess -> FSComp.SR.featureErrorOnDeprecatedRequireQualifiedAccess () + | LanguageFeature.SelfTypeConstraints -> FSComp.SR.featureSelfTypeConstraints () | LanguageFeature.MatchNotAllowedForUnionCaseWithNoData -> FSComp.SR.featureMatchNotAllowedForUnionCaseWithNoData () | LanguageFeature.CSharpExtensionAttributeNotRequired -> FSComp.SR.featureCSharpExtensionAttributeNotRequired () | LanguageFeature.ErrorForNonVirtualMembersOverrides -> FSComp.SR.featureErrorForNonVirtualMembersOverrides () - | LanguageFeature.WarningWhenCopyAndUpdateRecordChangesAllFields -> - FSComp.SR.featureWarningWhenCopyAndUpdateRecordChangesAllFields () + | LanguageFeature.NonInlineLiteralsAsPrintfFormat -> FSComp.SR.featureNonInlineLiteralsAsPrintfFormat () | LanguageFeature.WarningWhenMultipleRecdTypeChoice -> FSComp.SR.featureWarningWhenMultipleRecdTypeChoice () | LanguageFeature.ConstraintIntersectionOnFlexibleTypes -> FSComp.SR.featureConstraintIntersectionOnFlexibleTypes () | LanguageFeature.WarningWhenTailRecAttributeButNonTailRecUsage -> FSComp.SR.featureChkNotTailRecursive () diff --git a/src/Compiler/Facilities/LanguageFeatures.fsi b/src/Compiler/Facilities/LanguageFeatures.fsi index 44963e9f437..17919435b6f 100644 --- a/src/Compiler/Facilities/LanguageFeatures.fsi +++ b/src/Compiler/Facilities/LanguageFeatures.fsi @@ -6,7 +6,9 @@ module internal FSharp.Compiler.Features /// LanguageFeature enumeration [] type LanguageFeature = + | PackageManagement | FromEndSlicing + | ResumableStateMachines | RuntimeAsync | WitnessPassing | AdditionalTypeDirectedConversions @@ -17,10 +19,11 @@ type LanguageFeature = | AttributesToRightOfModuleKeyword | ReallyLongLists | ErrorOnDeprecatedRequireQualifiedAccess + | SelfTypeConstraints | MatchNotAllowedForUnionCaseWithNoData | CSharpExtensionAttributeNotRequired | ErrorForNonVirtualMembersOverrides - | WarningWhenCopyAndUpdateRecordChangesAllFields + | NonInlineLiteralsAsPrintfFormat | WarningWhenMultipleRecdTypeChoice | ConstraintIntersectionOnFlexibleTypes | WarningWhenTailRecAttributeButNonTailRecUsage diff --git a/src/Compiler/xlf/FSComp.txt.cs.xlf b/src/Compiler/xlf/FSComp.txt.cs.xlf index fd71f7477b2..ef0cc0fb695 100644 --- a/src/Compiler/xlf/FSComp.txt.cs.xlf +++ b/src/Compiler/xlf/FSComp.txt.cs.xlf @@ -592,11 +592,6 @@ Metoda getter a setter indexované vlastnosti musí mít stejný typ. - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Vyvolá upozornění, když výraz záznamu kopírování a aktualizace změní všechna pole záznamu. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Vyvolá upozornění, pokud bylo během překladu názvů nalezeno více shod typu záznamu z důvodu překrývajících se názvů polí. diff --git a/src/Compiler/xlf/FSComp.txt.de.xlf b/src/Compiler/xlf/FSComp.txt.de.xlf index 94dd5a853d4..61f2fe3b0d7 100644 --- a/src/Compiler/xlf/FSComp.txt.de.xlf +++ b/src/Compiler/xlf/FSComp.txt.de.xlf @@ -592,11 +592,6 @@ Getter und Setter für indizierte Eigenschaften müssen denselben Typ aufweisen. - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Löst Warnungen aus, wenn ein Ausdruck zum Kopieren und Aktualisieren von Datensätzen alle Felder eines Datensatzes ändert. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Löst Warnungen aus, wenn bei der Namensauflösung aufgrund überlappender Feldnamen mehrere Datensatztypüberstimmungen gefunden wurden. diff --git a/src/Compiler/xlf/FSComp.txt.es.xlf b/src/Compiler/xlf/FSComp.txt.es.xlf index aa957d50c55..d3e0caeefb4 100644 --- a/src/Compiler/xlf/FSComp.txt.es.xlf +++ b/src/Compiler/xlf/FSComp.txt.es.xlf @@ -592,11 +592,6 @@ El captador y el establecedor de propiedades indexadas deben tener el mismo tipo. - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Emite advertencias cuando una expresión de copiar y actualizar registros cambia todos los campos de un registro. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Genera advertencias cuando se encontraron varias coincidencias de tipo de registro durante la resolución de nombres debido a nombres de campo superpuestos. diff --git a/src/Compiler/xlf/FSComp.txt.fr.xlf b/src/Compiler/xlf/FSComp.txt.fr.xlf index 7898b748239..a7faf3e1ad2 100644 --- a/src/Compiler/xlf/FSComp.txt.fr.xlf +++ b/src/Compiler/xlf/FSComp.txt.fr.xlf @@ -592,11 +592,6 @@ Les propriétés indexées getter et setter doivent avoir le même type - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Génère des avertissements lorsqu'une expression d'enregistrement de copie et de mise à jour modifie tous les champs d'un enregistrement. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Déclenche des avertissements lorsque plusieurs correspondances de types d'enregistrement ont été trouvées lors de la résolution de nom en raison de noms de champs qui se chevauchent. diff --git a/src/Compiler/xlf/FSComp.txt.it.xlf b/src/Compiler/xlf/FSComp.txt.it.xlf index 93f633805e9..a71961a7b9e 100644 --- a/src/Compiler/xlf/FSComp.txt.it.xlf +++ b/src/Compiler/xlf/FSComp.txt.it.xlf @@ -592,11 +592,6 @@ Il getter e il setter delle proprietà indicizzate devono avere lo stesso tipo - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Genera avvisi quando un'espressione di record di copia e aggiornamento modifica tutti i campi di un record. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Genera avvisi quando sono state trovate più corrispondenze del tipo di record durante la risoluzione dei nomi a causa di nomi di campi sovrapposti. diff --git a/src/Compiler/xlf/FSComp.txt.ja.xlf b/src/Compiler/xlf/FSComp.txt.ja.xlf index 2407906320e..e1a3576789f 100644 --- a/src/Compiler/xlf/FSComp.txt.ja.xlf +++ b/src/Compiler/xlf/FSComp.txt.ja.xlf @@ -592,11 +592,6 @@ インデックス付きプロパティのゲッターとセッターの型は同じである必要があります - - Raises warnings when an copy-and-update record expression changes all fields of a record. - copy-and-update レコード式によってレコードのすべてのフィールドが変更されたときに警告を表示します。 - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. フィールド名が重複しているため、名前解決中に複数のレコードの種類の一致が見つかった場合に警告を生成します。 diff --git a/src/Compiler/xlf/FSComp.txt.ko.xlf b/src/Compiler/xlf/FSComp.txt.ko.xlf index b35a65b4344..d7a690fbac9 100644 --- a/src/Compiler/xlf/FSComp.txt.ko.xlf +++ b/src/Compiler/xlf/FSComp.txt.ko.xlf @@ -592,11 +592,6 @@ 인덱싱된 속성 getter와 setter의 형식이 같아야 합니다. - - Raises warnings when an copy-and-update record expression changes all fields of a record. - 레코드 복사 및 업데이트 식이 레코드의 모든 필드를 변경할 때 경고를 발생합니다. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. 필드 이름이 겹치므로 이름 확인 중에 레코드 유형 일치가 여러 개 발견되면 경고가 발생합니다. diff --git a/src/Compiler/xlf/FSComp.txt.pl.xlf b/src/Compiler/xlf/FSComp.txt.pl.xlf index e7f20c76905..3da4ce3f395 100644 --- a/src/Compiler/xlf/FSComp.txt.pl.xlf +++ b/src/Compiler/xlf/FSComp.txt.pl.xlf @@ -592,11 +592,6 @@ Metoda pobierająca i metoda ustawiająca właściwości indeksowanych muszą mieć taki sam typ. - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Zgłasza ostrzeżenia, gdy wyrażenie rekordu kopiowania i aktualizacji zmieni wszystkie pola rekordu. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Zgłasza ostrzeżenia, gdy znaleziono wiele dopasowań typów rekordów podczas rozpoznawania nazw z powodu nakładających się nazw pól. diff --git a/src/Compiler/xlf/FSComp.txt.pt-BR.xlf b/src/Compiler/xlf/FSComp.txt.pt-BR.xlf index 02972428b5b..14cb762f946 100644 --- a/src/Compiler/xlf/FSComp.txt.pt-BR.xlf +++ b/src/Compiler/xlf/FSComp.txt.pt-BR.xlf @@ -592,11 +592,6 @@ As propriedades indexadas getter e setter devem ter o mesmo tipo - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Gera avisos quando uma expressão de registro de cópia e atualização altera todos os campos de um registro. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Gera avisos quando várias correspondências de tipo de registro foram encontradas durante a resolução de nomes devido à sobreposição de nomes de campo. diff --git a/src/Compiler/xlf/FSComp.txt.ru.xlf b/src/Compiler/xlf/FSComp.txt.ru.xlf index 161b7677cb7..711c4eb41a2 100644 --- a/src/Compiler/xlf/FSComp.txt.ru.xlf +++ b/src/Compiler/xlf/FSComp.txt.ru.xlf @@ -592,11 +592,6 @@ Методы получения и установки индексированных свойств должны иметь один и тот же тип. - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Создает предупреждения, когда выражение копирования и обновления записи изменяет все поля записи. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Выдает предупреждения, когда при разрешении имен обнаружено несколько совпадений типов записи из-за перекрывающихся имен полей. diff --git a/src/Compiler/xlf/FSComp.txt.tr.xlf b/src/Compiler/xlf/FSComp.txt.tr.xlf index 8ff397ae9dd..5343b1b5c16 100644 --- a/src/Compiler/xlf/FSComp.txt.tr.xlf +++ b/src/Compiler/xlf/FSComp.txt.tr.xlf @@ -592,11 +592,6 @@ Dizini oluşturulmuş özelliklerin alıcısı ve ayarlayıcısı aynı türde olmalıdır - - Raises warnings when an copy-and-update record expression changes all fields of a record. - Bir kopyalama ve güncelleştirme kayıt ifadesi bir kaydın tüm alanlarını değiştirdiğinde uyarı oluşturur. - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. Çakışan alan adları nedeniyle, ad çözümlemesi sırasında birden çok kayıt türü eşleşmesi olduğunda uyarı verir. diff --git a/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf b/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf index 85319784922..ab85cf7b718 100644 --- a/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf +++ b/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf @@ -592,11 +592,6 @@ 索引属性 getter 和 setter 必须具有相同的类型 - - Raises warnings when an copy-and-update record expression changes all fields of a record. - 复制和更新记录表达式更改记录的所有字段时引发警告。 - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. 在名称解析期间由于字段名称重叠而找到多个记录类型匹配项时引发警告。 diff --git a/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf b/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf index 0c3906e97d1..748dd5f94c5 100644 --- a/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf +++ b/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf @@ -592,11 +592,6 @@ 索引屬性 getter 和 setter 必須具有相同的類型 - - Raises warnings when an copy-and-update record expression changes all fields of a record. - 當複製和更新記錄運算式變更記錄的所有欄位時引發警告。 - - Raises warnings when multiple record type matches were found during name resolution because of overlapping field names. 在名稱解析期間由於欄位名稱重疊而找到多個記錄類型相符項目時引發警告。