未验证 提交 4ad56150 编写于 作者: P Petr Pokorny 提交者: GitHub

Keeping error context for tuple length mismatch (#14003)

上级 a5dfa94f
......@@ -5815,7 +5815,7 @@ and CheckTupleIsCorrectLength g (env: TcEnv) m tupleTy (args: 'a list) tcArgs =
// We let error recovery handle this exception
error (ErrorFromAddingTypeEquation(g, env.DisplayEnv, tupleTy, expectedTy,
(ConstraintSolverTupleDiffLengths(env.DisplayEnv, ptys, argTys, m, m)), m))
(ConstraintSolverTupleDiffLengths(env.DisplayEnv, env.eContextInfo, ptys, argTys, m, m)), m))
and TcExprTuple (cenv: cenv) overallTy env tpenv (isExplicitStruct, args, m) =
let g = cenv.g
......
......@@ -232,7 +232,7 @@ type OverallTy =
| MustEqual ty -> ty
| MustConvertTo (_, ty) -> ty
exception ConstraintSolverTupleDiffLengths of displayEnv: DisplayEnv * TType list * TType list * range * range
exception ConstraintSolverTupleDiffLengths of displayEnv: DisplayEnv * contextInfo: ContextInfo * TType list * TType list * range * range
exception ConstraintSolverInfiniteTypes of displayEnv: DisplayEnv * contextInfo: ContextInfo * TType * TType * range * range
......@@ -1228,7 +1228,7 @@ and SolveTypeEqualsTypeEqns csenv ndeep m2 trace cxsln origl1 origl2 =
| h1 :: t1, h2 :: t2 when t1.Length = t2.Length ->
SolveTypeEqualsTypeKeepAbbrevsWithCxsln csenv ndeep m2 trace cxsln h1 h2 ++ (fun () -> loop t1 t2)
| _ ->
ErrorD(ConstraintSolverTupleDiffLengths(csenv.DisplayEnv, origl1, origl2, csenv.m, m2))
ErrorD(ConstraintSolverTupleDiffLengths(csenv.DisplayEnv, csenv.eContextInfo, origl1, origl2, csenv.m, m2))
loop origl1 origl2
and SolveFunTypeEqn csenv ndeep m2 trace cxsln domainTy1 domainTy2 rangeTy1 rangeTy2 = trackErrors {
......
......@@ -141,7 +141,13 @@ type OverallTy =
/// Represents a point where no subsumption/widening is possible
member Commit: TType
exception ConstraintSolverTupleDiffLengths of displayEnv: DisplayEnv * TType list * TType list * range * range
exception ConstraintSolverTupleDiffLengths of
displayEnv: DisplayEnv *
contextInfo: ContextInfo *
TType list *
TType list *
range *
range
exception ConstraintSolverInfiniteTypes of
displayEnv: DisplayEnv *
......
......@@ -170,7 +170,7 @@ type Exception with
| VirtualAugmentationOnNullValuedType m
| NonVirtualAugmentationOnNullValuedType m
| NonRigidTypar (_, _, _, _, _, m)
| ConstraintSolverTupleDiffLengths (_, _, _, m, _)
| ConstraintSolverTupleDiffLengths (_, _, _, _, m, _)
| ConstraintSolverInfiniteTypes (_, _, _, _, m, _)
| ConstraintSolverMissingConstraint (_, _, _, m, _)
| ConstraintSolverTypesNotInEqualityRelation (_, _, _, m, _, _)
......@@ -617,12 +617,28 @@ let OutputNameSuggestions (os: StringBuilder) suggestNames suggestionsF idText =
os.AppendString " "
os.AppendString(ConvertValLogicalNameToDisplayNameCore value)
let OutputTypesNotInEqualityRelationContextInfo contextInfo ty1 ty2 m (os: StringBuilder) fallback =
match contextInfo with
| ContextInfo.IfExpression range when equals range m -> os.AppendString(FSComp.SR.ifExpression (ty1, ty2))
| ContextInfo.CollectionElement (isArray, range) when equals range m ->
if isArray then
os.AppendString(FSComp.SR.arrayElementHasWrongType (ty1, ty2))
else
os.AppendString(FSComp.SR.listElementHasWrongType (ty1, ty2))
| ContextInfo.OmittedElseBranch range when equals range m -> os.AppendString(FSComp.SR.missingElseBranch (ty2))
| ContextInfo.ElseBranchResult range when equals range m -> os.AppendString(FSComp.SR.elseBranchHasWrongType (ty1, ty2))
| ContextInfo.FollowingPatternMatchClause range when equals range m ->
os.AppendString(FSComp.SR.followingPatternMatchClauseHasWrongType (ty1, ty2))
| ContextInfo.PatternMatchGuard range when equals range m -> os.AppendString(FSComp.SR.patternMatchGuardIsNotBool (ty2))
| contextInfo -> fallback contextInfo
type Exception with
member exn.Output(os: StringBuilder, suggestNames) =
match exn with
| ConstraintSolverTupleDiffLengths (_, tl1, tl2, m, m2) ->
// TODO: this is now unused...?
| ConstraintSolverTupleDiffLengths (_, _, tl1, tl2, m, m2) ->
os.AppendString(ConstraintSolverTupleDiffLengthsE().Format tl1.Length tl2.Length)
if m.StartLine <> m2.StartLine then
......@@ -663,19 +679,8 @@ type Exception with
// REVIEW: consider if we need to show _cxs (the type parameter constraints)
let ty1, ty2, _cxs = NicePrint.minimalStringsOfTwoTypes denv ty1 ty2
match contextInfo with
| ContextInfo.IfExpression range when equals range m -> os.AppendString(FSComp.SR.ifExpression (ty1, ty2))
| ContextInfo.CollectionElement (isArray, range) when equals range m ->
if isArray then
os.AppendString(FSComp.SR.arrayElementHasWrongType (ty1, ty2))
else
os.AppendString(FSComp.SR.listElementHasWrongType (ty1, ty2))
| ContextInfo.OmittedElseBranch range when equals range m -> os.AppendString(FSComp.SR.missingElseBranch (ty2))
| ContextInfo.ElseBranchResult range when equals range m -> os.AppendString(FSComp.SR.elseBranchHasWrongType (ty1, ty2))
| ContextInfo.FollowingPatternMatchClause range when equals range m ->
os.AppendString(FSComp.SR.followingPatternMatchClauseHasWrongType (ty1, ty2))
| ContextInfo.PatternMatchGuard range when equals range m -> os.AppendString(FSComp.SR.patternMatchGuardIsNotBool (ty2))
| _ -> os.AppendString(ConstraintSolverTypesNotInEqualityRelation2E().Format ty1 ty2)
OutputTypesNotInEqualityRelationContextInfo contextInfo ty1 ty2 m os (fun _ ->
os.AppendString(ConstraintSolverTypesNotInEqualityRelation2E().Format ty1 ty2))
if m.StartLine <> m2.StartLine then
os.AppendString(SeeAlsoE().Format(stringOfRange m))
......@@ -699,33 +704,15 @@ type Exception with
->
let ty1, ty2, tpcs = NicePrint.minimalStringsOfTwoTypes denv ty1 ty2
match contextInfo with
| ContextInfo.IfExpression range when equals range m -> os.AppendString(FSComp.SR.ifExpression (ty1, ty2))
| ContextInfo.CollectionElement (isArray, range) when equals range m ->
if isArray then
os.AppendString(FSComp.SR.arrayElementHasWrongType (ty1, ty2))
else
os.AppendString(FSComp.SR.listElementHasWrongType (ty1, ty2))
| ContextInfo.OmittedElseBranch range when equals range m -> os.AppendString(FSComp.SR.missingElseBranch (ty2))
| ContextInfo.ElseBranchResult range when equals range m -> os.AppendString(FSComp.SR.elseBranchHasWrongType (ty1, ty2))
| ContextInfo.FollowingPatternMatchClause range when equals range m ->
os.AppendString(FSComp.SR.followingPatternMatchClauseHasWrongType (ty1, ty2))
| ContextInfo.PatternMatchGuard range when equals range m -> os.AppendString(FSComp.SR.patternMatchGuardIsNotBool (ty2))
| ContextInfo.TupleInRecordFields ->
os.AppendString(ErrorFromAddingTypeEquation1E().Format ty2 ty1 tpcs)
os.AppendString(Environment.NewLine + FSComp.SR.commaInsteadOfSemicolonInRecord ())
| _ when ty2 = "bool" && ty1.EndsWithOrdinal(" ref") ->
os.AppendString(ErrorFromAddingTypeEquation1E().Format ty2 ty1 tpcs)
os.AppendString(Environment.NewLine + FSComp.SR.derefInsteadOfNot ())
| _ -> os.AppendString(ErrorFromAddingTypeEquation1E().Format ty2 ty1 tpcs)
OutputTypesNotInEqualityRelationContextInfo contextInfo ty1 ty2 m os (fun contextInfo ->
match contextInfo with
| ContextInfo.TupleInRecordFields ->
os.AppendString(ErrorFromAddingTypeEquation1E().Format ty2 ty1 tpcs)
os.AppendString(Environment.NewLine + FSComp.SR.commaInsteadOfSemicolonInRecord ())
| _ when ty2 = "bool" && ty1.EndsWithOrdinal(" ref") ->
os.AppendString(ErrorFromAddingTypeEquation1E().Format ty2 ty1 tpcs)
os.AppendString(Environment.NewLine + FSComp.SR.derefInsteadOfNot ())
| _ -> os.AppendString(ErrorFromAddingTypeEquation1E().Format ty2 ty1 tpcs))
| ErrorFromAddingTypeEquation (_, _, _, _, (ConstraintSolverTypesNotInEqualityRelation (_, _, _, _, _, contextInfo) as e), _) when
(match contextInfo with
......@@ -738,11 +725,23 @@ type Exception with
| ErrorFromAddingTypeEquation(error = ConstraintSolverError _ as e) -> e.Output(os, suggestNames)
| ErrorFromAddingTypeEquation (_g, denv, ty1, ty2, ConstraintSolverTupleDiffLengths (_, tl1, tl2, _, _), _) ->
| ErrorFromAddingTypeEquation (_g, denv, ty1, ty2, ConstraintSolverTupleDiffLengths (_, contextInfo, tl1, tl2, _, _), m) ->
let ty1, ty2, tpcs = NicePrint.minimalStringsOfTwoTypes denv ty1 ty2
let messageArgs = tl1.Length, ty1, tl2.Length, ty2
if ty1 <> ty2 + tpcs then
os.AppendString(ErrorFromAddingTypeEquationTuplesE().Format tl1.Length ty1 tl2.Length ty2 tpcs)
match contextInfo with
| ContextInfo.IfExpression range when equals range m -> os.AppendString(FSComp.SR.ifExpressionTuple messageArgs)
| ContextInfo.ElseBranchResult range when equals range m ->
os.AppendString(FSComp.SR.elseBranchHasWrongTypeTuple messageArgs)
| ContextInfo.FollowingPatternMatchClause range when equals range m ->
os.AppendString(FSComp.SR.followingPatternMatchClauseHasWrongTypeTuple messageArgs)
| ContextInfo.CollectionElement (isArray, range) when equals range m ->
if isArray then
os.AppendString(FSComp.SR.arrayElementHasWrongTypeTuple messageArgs)
else
os.AppendString(FSComp.SR.listElementHasWrongTypeTuple messageArgs)
| _ -> os.AppendString(ErrorFromAddingTypeEquationTuplesE().Format tl1.Length ty1 tl2.Length ty2 tpcs)
| ErrorFromAddingTypeEquation (g, denv, ty1, ty2, e, _) ->
if not (typeEquiv g ty1 ty2) then
......@@ -2107,7 +2106,7 @@ type PhasedDiagnostic with
Printf.bprintf buf "\n"
match e with
| FormattedDiagnostic.Short (_, txt) -> buf.AppendString txt |> ignore
| FormattedDiagnostic.Short (_, txt) -> buf.AppendString txt
| FormattedDiagnostic.Long (_, details) ->
match details.Location with
| Some l when not l.IsEmpty -> buf.AppendString l.TextRepresentation
......
......@@ -19,11 +19,16 @@ undefinedNamePatternDiscriminator,"The pattern discriminator '%s' is not defined
replaceWithSuggestion,"Replace with '%s'"
addIndexerDot,"Add . for indexer access."
listElementHasWrongType,"All elements of a list must be implicitly convertible to the type of the first element, which here is '%s'. This element has type '%s'."
listElementHasWrongTypeTuple,"All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length %d of type\n %s \nThis element is a tuple of length %d of type\n %s \n"
arrayElementHasWrongType,"All elements of an array must be implicitly convertible to the type of the first element, which here is '%s'. This element has type '%s'."
arrayElementHasWrongTypeTuple,"All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length %d of type\n %s \nThis element is a tuple of length %d of type\n %s \n"
missingElseBranch,"This 'if' expression is missing an 'else' branch. Because 'if' is an expression, and not a statement, add an 'else' branch which also returns a value of type '%s'."
ifExpression,"The 'if' expression needs to have type '%s' to satisfy context type requirements. It currently has type '%s'."
ifExpressionTuple,"The 'if' expression needs to return a tuple of length %d of type\n %s \nto satisfy context type requirements. It currently returns a tuple of length %d of type\n %s \n"
elseBranchHasWrongType,"All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is '%s'. This branch returns a value of type '%s'."
elseBranchHasWrongTypeTuple,"All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length %d of type\n %s \nThis branch returns a tuple of length %d of type\n %s \n"
followingPatternMatchClauseHasWrongType,"All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is '%s'. This branch returns a value of type '%s'."
followingPatternMatchClauseHasWrongTypeTuple,"All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length %d of type\n %s \nThis branch returns a tuple of length %d of type\n %s \n"
patternMatchGuardIsNotBool,"A pattern match guard must be of type 'bool', but this 'when' expression is of type '%s'."
commaInsteadOfSemicolonInRecord,"A ';' is used to separate field values in records. Consider replacing ',' with ';'."
derefInsteadOfNot,"The '!' operator is used to dereference a ref cell. Consider using 'not expr' here."
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="cs" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">Soubor {0} má nerozpoznanou příponu. Zdrojové soubory musí mít příponu .fs, .fsi, .fsx nebo .fsscript. Pokud chcete povolit použití zastaralých přípon .ml nebo .mli, použijte parametry --langversion:5.0 a --mlcompatibility.</target>
......@@ -107,6 +112,11 @@
<target state="translated">Argument {0} neodpovídá</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Navržené sestavení poskytovatele typu {0} nešlo načíst ze složky {1}, protože chyběla závislost nebo ji nešlo načíst. Všechny závislosti tohoto sestavení se musí nacházet ve stejné složce jako toto sestavení. Ohlášená výjimka: {2} – {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">Předávání kopie clusteru pro omezení vlastností v uvozovkách v jazyce F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">Interpolované řetězce nemůžou používat specifikátory formátu %, pokud se každému z nich nezadá nějaký výraz, např. %d{{1+1}}.</target>
......@@ -357,6 +372,11 @@
<target state="translated">Neplatná direktiva #{0} {1}</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Neznámý bod ladění {0}. Dostupné body ladění jsou {1}.</target>
......@@ -417,6 +437,11 @@
<target state="translated">Neplatný interpolovaný řetězec. V interpolovaných výrazech se nedají použít řetězcové literály s trojitými uvozovkami. Zvažte možnost použít pro interpolovaný výraz explicitní vazbu let.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="de" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">Die Dateierweiterung von „{0}“ wurde nicht erkannt. Quelldateien müssen die Erweiterung .fs, .fsi, .fsx oder .fsscript haben. Um die veraltete Verwendung der Erweiterungen .ml oder .mli zu aktivieren, verwenden Sie „--langversion:5.0“ und „--mlcompatibility“.</target>
......@@ -107,6 +112,11 @@
<target state="translated">Das Argument "{0}" stimmt nicht überein.</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Die Typanbieter-Designerassembly "{0}" konnte aus dem Ordner "{1}" nicht geladen werden, weil eine Abhängigkeit fehlte oder nicht geladen werden konnte. Alle Abhängigkeiten der Typanbieter-Designerassembly müssen sich in demselben Ordner wie die Assembly befinden. Gemeldete Ausnahme: {2} – {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">Zeugenübergabe für Merkmalseinschränkungen in F#-Zitaten</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">Interpolierte Zeichenfolgen dürfen keine Formatbezeichner vom Typ "%" verwenden, es sei denn, jeder erhält einen Ausdruck, z. B. "%d{{1+1}}".</target>
......@@ -357,6 +372,11 @@
<target state="translated">Ungültige Direktive "#{0} {1}"</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Unbekannter Debugpunkt „{0}“. Die verfügbaren Debugpunkte sind „{1}“.</target>
......@@ -417,6 +437,11 @@
<target state="translated">Ungültige interpolierte Zeichenfolge. Zeichenfolgenliterale mit dreifachen Anführungszeichen dürfen in interpolierten Ausdrücken nicht verwendet werden. Erwägen Sie die Verwendung einer expliziten let-Bindung für den Interpolationsausdruck.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="es" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">No se reconoce la extensión de archivo de '{0}'. Los archivos de código fuente deben tener las extensiones .fs, .fsi, .fsx o .fsscript. Para habilitar el uso en desuso de las extensiones .ml o .mli, use '--langversion:5.0' y '--mlcompatibility'.</target>
......@@ -107,6 +112,11 @@
<target state="translated">El argumento "{0}" no coincide.</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">No se pudo cargar el ensamblado del diseñador de proveedores de tipos "{0}" desde la carpeta "{1}" porque falta una dependencia o no se pudo cargar. Todas las dependencias del ensamblado del diseñador de proveedores de tipos deben encontrarse en la misma carpeta que el ensamblado. Se notificó la excepción: {2} - {3}.</target>
......@@ -317,6 +327,11 @@
<target state="translated">Paso de testigo para las restricciones de rasgos en las expresiones de código delimitadas de F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">Las cadenas interpoladas no pueden usar los especificadores de formato "%", a menos que se les proporcione una expresión individualmente; por ejemplo, "%d{{1+1}}".</target>
......@@ -357,6 +372,11 @@
<target state="translated">Directiva '#{0} {1}' no válida.</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Punto de depuración desconocido \"{0}\". Los puntos de depuración disponibles son \"{1}\".</target>
......@@ -417,6 +437,11 @@
<target state="translated">Cadena interpolada no válida. No se pueden usar literales de cadena de comillas triples en las expresiones interpoladas. Puede usar un enlace "let" explícito para la expresión de interpolación.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="fr" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">L’extension de fichier « {0} » n’est pas reconnue. Les fichiers sources doivent avoir l’extension. FS,. FSI,. FSX ou. fsscript. Pour activer l’utilisation déconseillée des extensions. ml ou. MLI, utilisez'--langversion : 5.0 'et'--mlcompatibility'.</target>
......@@ -107,6 +112,11 @@
<target state="translated">L'argument '{0}' ne correspond pas</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Impossible de charger l'assembly de concepteur de fournisseur de type '{0}' à partir du dossier '{1}', car une dépendance est manquante ou n'a pas pu être chargée. Toutes les dépendances de l'assembly de concepteur de fournisseur de type doivent se trouver dans le même dossier que cet assembly. Exception signalée : {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">Passage de témoin pour les contraintes de trait dans les quotations F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">Les chaînes interpolées ne peuvent pas utiliser les spécificateurs de format '%' à moins de recevoir une expression, par exemple '%d{{1+1}}'.</target>
......@@ -357,6 +372,11 @@
<target state="translated">Directive non valide '#{0} {1}'</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Point de débogage inconnu « {0} ». Les points de débogage disponibles sont «{1}».</target>
......@@ -417,6 +437,11 @@
<target state="translated">Chaîne interpolée non valide. Les littéraux de chaîne à guillemets triples ne peuvent pas être utilisés dans des expressions interpolées. Utilisez une liaison 'let' explicite pour l'expression d'interpolation.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="it" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">L'estensione di file di '{0}' non è riconosciuta. I file di origine devono avere estensione fs, fsi, fsx o fsscript. Per abilitare l'uso deprecato delle estensioni ml o mli, usare '--langversion:5.0' e '--mlcompatibility'.</target>
......@@ -107,6 +112,11 @@
<target state="translated">L'argomento '{0}' non corrisponde</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Non è stato possibile caricare l'assembly '{0}' della finestra di progettazione del provider di tipi dalla cartella '{1}' perché una dipendenza non è presente o non è stato possibile caricarla. Tutte le dipendenze dell'assembly della finestra di progettazione del provider di tipi devono trovarsi nella stessa cartella dell'assembly. L'eccezione restituita è {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">Passaggio del testimone per vincoli di tratto in quotation F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">Nelle stringhe interpolate non è possibile usare gli identificatori di formato '%' a meno che non si indichi un'espressione per ognuno di essi, ad esempio '%d{{1+1}}'.</target>
......@@ -357,6 +372,11 @@
<target state="translated">Direttiva '#{0} {1}' non valida</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Punto di debug '{0}' sconosciuto. I punti di debug disponibili sono '{1}'.</target>
......@@ -417,6 +437,11 @@
<target state="translated">La stringa interpolata non è valida. Non è possibile usare valori letterali stringa tra virgolette triple in espressioni interpolate. Provare a usare un binding 'let' esplicito per l'espressione di interpolazione.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ja" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">'{0}' のファイル拡張子を認識できません。ソース ファイル拡張子は .fs、.fsi、.fsx、または .fsscript にする必要があります。非推奨の拡張子 .ml または .mli の使用を有効にするには、'--langversion:5.0' および '--mlcompatibility' を使用してください。</target>
......@@ -107,6 +112,11 @@
<target state="translated">引数 '{0}' が一致しません</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">依存関係がないか、または読み込めなかったため、型プロバイダーのデザイナー アセンブリ '{0}' をフォルダー '{1}' から読み込めませんでした。型プロバイダーのデザイナー アセンブリのすべての依存関係は、そのアセンブリと同じフォルダーに配置されている必要があります。次の例外が報告されました: {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">F# 引用での特性制約に対する監視の引き渡し</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">'%d{{1+1}}' などの式が指定されている場合を除き、補間された文字列では '%' 書式指定子を使用できません。</target>
......@@ -357,6 +372,11 @@
<target state="translated">無効なディレクティブ '#{0} {1}'</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">不明なデバッグ ポイントの `{0}`。使用可能なデバッグ ポイントは `{1}` です。</target>
......@@ -417,6 +437,11 @@
<target state="translated">補間された文字列が無効です。三重引用符文字列リテラルは、補間された式では使用できません。補間式に対して明示的な 'let' バインドを使用することをご検討ください。</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ko" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">'{0}'의 파일 확장자가 인식되지 않습니다. 원본 파일의 확장자는 .fs, .fsi, .fsx 또는 .fsscript여야 합니다. 더 이상 사용되지 않는 .ml 또는 .mli 확장자를 사용하려면 '--langversion:5.0' 및 '--mlcompatibility'를 사용하세요.</target>
......@@ -107,6 +112,11 @@
<target state="translated">'{0}' 인수가 일치하지 않습니다.</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">종속성이 없거나 로드되지 않았으므로 '{0}' 형식 공급자 디자이너 어셈블리를 '{1}' 폴더에서 로드할 수 없습니다. 형식 공급자 디자이너 어셈블리의 모든 종속성은 해당 어셈블리와 동일한 폴더에 있어야 합니다. 보고된 예외: {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">F# 인용의 특성 제약 조건에 대한 감시 전달</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">각 보간 문자열에 식(예: '%d{{1+1}}')이 지정되지 않는 한 '%' 형식 지정자를 사용할 수 없습니다.</target>
......@@ -357,6 +372,11 @@
<target state="translated">잘못된 지시문 '#{0} {1}'</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">알 수 없는 디버그 지점 '{0}'. 사용 가능한 디버그 지점은 '{1}'입니다.</target>
......@@ -417,6 +437,11 @@
<target state="translated">잘못된 보간 문자열. 삼중 따옴표 문자열 리터럴은 보간 식에 사용할 수 없습니다. 보간 식에 명시적 'let' 바인딩을 사용해 보세요.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pl" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">Rozszerzenie pliku "{0}" nie zostało rozpoznane. Pliki źródłowe muszą mieć rozszerzenie .fs, .fsi, .fsx lub .fsscript. Aby włączyć przestarzałe używanie rozszerzeń. ml lub .mli, użyj polecenia "--langversion: 5.0" i "--mlcompatibility".</target>
......@@ -107,6 +112,11 @@
<target state="translated">Argument „{0}” nie jest zgodny</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Nie można załadować zestawu projektanta dostawców typów „{0}” z folderu „{1}”, ponieważ brakuje zależności lub nie można jej załadować. Wszystkie zależności zestawu projektanta dostawców typów muszą znajdować się w tym samym folderze co ten zestaw. Zgłoszony wyjątek: {2} — {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">monitor, który przekazuje ograniczenia cech języka F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">W interpolowanych ciągach nie można używać specyfikatorów formatu „%”, chyba że każdemu z nich odpowiada wyrażenie, na przykład „%d{{1+1}}”.</target>
......@@ -357,6 +372,11 @@
<target state="translated">Nieprawidłowa dyrektywa „#{0} {1}”</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Nieznany punkt debugowania „{0}”. Dostępnymi punktami debugowania są „{1}”.</target>
......@@ -417,6 +437,11 @@
<target state="translated">Nieprawidłowy ciąg interpolowany. Literały ciągów z potrójnymi cudzysłowami nie mogą być używane w wyrażeniach interpolowanych. Rozważ użycie jawnego powiązania „let” dla wyrażenia interpolacji.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pt-BR" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">A extensão do arquivo '{0}' não foi reconhecida. Os arquivos de origem devem ter a extensão .fs, .fsi, .fsx ou .fsscript. Para ativar o uso preterido das extensões .ml ou .mli, use '--langversion:5.0' e '--mlcompatibility'.</target>
......@@ -107,6 +112,11 @@
<target state="translated">O argumento '{0}' não corresponde</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Não foi possível carregar o assembly do designer do provedor de tipos '{0}' da pasta '{1}' porque uma dependência estava ausente ou não pôde ser carregada. Todas as dependências do assembly do designer do provedor de tipos precisam estar localizadas na mesma pasta que esse assembly. A exceção relatada foi: {2} – {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">Passagem de testemunha para restrições de característica nas citações do F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">As cadeias de caracteres interpoladas não podem usar especificadores de formato '%', a menos que cada um receba uma expressão, por exemplo, '%d{{1+1}}'.</target>
......@@ -357,6 +372,11 @@
<target state="translated">Diretriz inválida '#{0} {1}'</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Ponto de depuração desconhecido '{0}'. Os pontos de depuração disponíveis são '{1}'.</target>
......@@ -417,6 +437,11 @@
<target state="translated">Cadeia de caracteres interpolada inválida. Literais de cadeia de caracteres de aspas triplas não podem ser usados em expressões interpoladas. Considere usar uma associação 'let' explícita para a expressão de interpolação.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ru" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">Расширение файла "{0}" не распознано. Исходные файлы должны иметь расширения FS, FSI, FSX или FSSCRIPT. Чтобы включить использование нерекомендуемых расширений ML или MLI, примените команду "--langversion:5.0" и "--mlcompatibility".</target>
......@@ -107,6 +112,11 @@
<target state="translated">Аргумент "{0}" не соответствует</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">Не удалось загрузить сборку конструктора поставщика типа "{0}" из папки "{1}", так как зависимость отсутствует или не может быть загружена. Все зависимости для сборки конструктора поставщика типа должны находиться в папке сборки. Получено исключение: {2} — {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">Передача свидетеля для ограничений признаков в цитированиях F#</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">В интерполированных строках запрещено использовать описатели формата "%", если только каждому из них не назначено выражение, например "'%d{{1+1}}".</target>
......@@ -357,6 +372,11 @@
<target state="translated">Недопустимая директива "#{0} {1}"</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Неизвестная точка отладки \"{0}\". Доступные точки отладки: \"{1}\".</target>
......@@ -417,6 +437,11 @@
<target state="translated">Недопустимая интерполированная строка. Строковые литералы с тройными кавычками запрещено использовать в интерполированных выражениях. Рекомендуется использовать явную привязку "let" для выражения интерполяции.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="tr" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">'{0}' kaynak dosyasının dosya uzantısı tanınmadı. Kaynak dosyaların uzantısı .fs, .fsi, .fsx veya .fsscript olmalıdır. Kullanım dışı .ml veya .mli uzantılarını etkinleştirmek için '--langversion:5.0' ve '--mlcompatibility' kullanın.</target>
......@@ -107,6 +112,11 @@
<target state="translated">'{0}' bağımsız değişkeni eşleşmiyor</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">'{0}' tür sağlayıcısı tasarımcı bütünleştirilmiş kodu, bir bağımlılık eksik olduğundan veya yüklenemediğinden '{1}' klasöründen yüklenemedi. Tür sağlayıcısı tasarımcısı bütünleştirilmiş kodunun tüm bağımlılıkları, ilgili bütünleştirilmiş kodun bulunduğu klasörde bulunmalıdır. Bildirilen özel durum: {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">F# alıntılarındaki nitelik kısıtlamaları için tanık geçirme</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">Düz metin arasına kod eklenmiş dizeler, her birine '%d{{1+1}}' gibi bir ifade verilmedikçe '%' biçim belirticilerini kullanamaz.</target>
......@@ -357,6 +372,11 @@
<target state="translated">Geçersiz yönerge '#{0} {1}'</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">Bilinmeyen hata ayıklama noktası '{0}'. Kullanılabilir hata ayıklama noktaları '{1}'.</target>
......@@ -417,6 +437,11 @@
<target state="translated">Geçersiz düz metin arasına kod eklenmiş dize. Üç tırnaklı dize sabitleri, düz metin arasına kod eklenmiş ifadelerde kullanılamaz. Düz metin arasına kod ekleme ifadesi için açık bir 'let' bağlaması kullanmayı düşünün.</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hans" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">无法识别“{0}”的文件扩展名。源文件必须具有扩展名 .fs、.fsi、.fsx 或 .fsscript。要启用已弃用的 .ml 或 .mli 扩展名,请使用 “--langversion:5.0” 和 “--mlcompatibility”。</target>
......@@ -107,6 +112,11 @@
<target state="translated">参数 "{0}" 不匹配</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">无法从文件夹“{1}”加载类型提供程序设计器程序集“{0}”,因为依赖项缺失或无法加载。类型提供程序设计器程序集的所有依赖项必须与该程序集位于同一文件夹中。报告的异常是: {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">F# 引号中特征约束的见证传递</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">内插字符串不会使用 "%" 格式说明符,除非为每个字符串提供诸如 "%d{{1+1}}" 之类的表达式。</target>
......@@ -357,6 +372,11 @@
<target state="translated">无效的指令“#{0} {1}”</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">调试点“{0}”未知。可用的调试点为“{1}”。</target>
......@@ -417,6 +437,11 @@
<target state="translated">内插字符串无效。在内插表达式中不能使用三重引号字符串文字。请考虑对内插表达式使用显式的 "let" 绑定。</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -2,6 +2,11 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hant" original="../FSComp.resx">
<body>
<trans-unit id="arrayElementHasWrongTypeTuple">
<source>All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="buildInvalidSourceFileExtensionML">
<source>The file extension of '{0}' is not recognized. Source files must have extension .fs, .fsi, .fsx or .fsscript. To enable the deprecated use of .ml or .mli extensions, use '--langversion:5.0' and '--mlcompatibility'.</source>
<target state="translated">無法辨識 '{0}' 的副檔名。來源檔案的副檔名必須是 fsi、.fsx 或 .fsscript。若要啟用已被取代的 .ml 或 .mli 副檔名,請使用 '--langversion:5.0' and '--mlcompatibility'。</target>
......@@ -107,6 +112,11 @@
<target state="translated">引數 '{0}' 不相符</target>
<note />
</trans-unit>
<trans-unit id="elseBranchHasWrongTypeTuple">
<source>All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="etProviderHasDesignerAssemblyDependency">
<source>The type provider designer assembly '{0}' could not be loaded from folder '{1}' because a dependency was missing or could not loaded. All dependencies of the type provider designer assembly must be located in the same folder as that assembly. The exception reported was: {2} - {3}</source>
<target state="translated">因為缺少相依性或相依性無法載入,導致無法從資料夾 '{1}' 載入類型提供者設計工具組件 '{0}'。類型提供者設計工具組件的所有相依性都必須位於該組件所在的資料夾內。回報的例外狀況: {2} - {3}</target>
......@@ -317,6 +327,11 @@
<target state="translated">見證 F# 引號中特徵條件約束的傳遞</target>
<note />
</trans-unit>
<trans-unit id="followingPatternMatchClauseHasWrongTypeTuple">
<source>All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length {0} of type\n {1} \nThis branch returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="forFormatInvalidForInterpolated">
<source>Interpolated strings may not use '%' format specifiers unless each is given an expression, e.g. '%d{{1+1}}'.</source>
<target state="translated">除非每個插補字串都有一個運算式,否則不可使用 '%' 格式指定名稱,例如 '%d{{1+1}}'。</target>
......@@ -357,6 +372,11 @@
<target state="translated">無效的指示詞 '#{0} {1}'</target>
<note />
</trans-unit>
<trans-unit id="ifExpressionTuple">
<source>The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</source>
<target state="new">The 'if' expression needs to return a tuple of length {0} of type\n {1} \nto satisfy context type requirements. It currently returns a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="ilxGenUnknownDebugPoint">
<source>Unknown debug point '{0}'. The available debug points are '{1}'.</source>
<target state="translated">未知的偵錯點 '{0}'。可用的偵錯點為 '{1}'。</target>
......@@ -417,6 +437,11 @@
<target state="translated">插補字串無效。三引號字串常值不可用於插補運算式。請考慮為內插補點運算式使用明確的 'let' 繫結。</target>
<note />
</trans-unit>
<trans-unit id="listElementHasWrongTypeTuple">
<source>All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</source>
<target state="new">All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length {0} of type\n {1} \nThis element is a tuple of length {2} of type\n {3} \n</target>
<note />
</trans-unit>
<trans-unit id="matchNotAllowedForUnionCaseWithNoData">
<source>Pattern discard is not allowed for union case that takes no data.</source>
<target state="new">Pattern discard is not allowed for union case that takes no data.</target>
......
......@@ -104,6 +104,74 @@ let test x =
"Type mismatch. Expecting a tuple of length 3 of type\n int * string * char \nbut given a tuple of length 2 of type\n int * char \n")
]
[<Fact>]
let ``Else branch context``() =
FSharp """
let f1(a, b: string, c) =
if true then (1, 2) else (a, b, c)
"""
|> typecheck
|> shouldFail
|> withDiagnostics [
(Error 1, Line 3, Col 31, Line 3, Col 38,
"All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length 2 of type\n int * int \nThis branch returns a tuple of length 3 of type\n 'a * string * 'b \n")
]
[<Fact>]
let ``Match branch context``() =
FSharp """
let f x =
match x with
| 0 -> 0, 0, 0
| _ -> "a", "a"
"""
|> typecheck
|> shouldFail
|> withDiagnostics [
(Error 1, Line 5, Col 12, Line 5, Col 20,
"All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length 3 of type\n int * int * int \nThis branch returns a tuple of length 2 of type\n string * string \n")
]
[<Fact>]
let ``If context`` () =
FSharp """
let y : bool * int * int =
if true then "A", "B"
else "B", "C"
"""
|> typecheck
|> shouldFail
|> withDiagnostics [
(Error 1, Line 3, Col 18, Line 3, Col 26,
"The 'if' expression needs to return a tuple of length 3 of type\n bool * int * int \nto satisfy context type requirements. It currently returns a tuple of length 2 of type\n string * string \n")
(Error 1, Line 4, Col 10, Line 4, Col 18,
"All branches of an 'if' expression must return values implicitly convertible to the type of the first branch, which here is a tuple of length 3 of type\n bool * int * int \nThis branch returns a tuple of length 2 of type\n string * string \n")
]
[<Fact>]
let ``Array context`` () =
FSharp """
let f x y = [| 1, 2; x, "a", y |]
"""
|> typecheck
|> shouldFail
|> withDiagnostics [
(Error 1, Line 2, Col 22, Line 2, Col 31,
"All elements of an array must be implicitly convertible to the type of the first element, which here is a tuple of length 2 of type\n int * int \nThis element is a tuple of length 3 of type\n 'a * string * 'b \n")
]
[<Fact>]
let ``List context`` () =
FSharp """
let f x y = [ 1, 2; x, "a", y ]
"""
|> typecheck
|> shouldFail
|> withDiagnostics [
(Error 1, Line 2, Col 21, Line 2, Col 30,
"All elements of a list must be implicitly convertible to the type of the first element, which here is a tuple of length 2 of type\n int * int \nThis element is a tuple of length 3 of type\n 'a * string * 'b \n")
]
[<Fact>]
let ``return Instead Of return!``() =
FSharp """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册