Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc46ca4e

Browse files
gustyKevinRansom
authored andcommitted
Remove ambiguous resolution error FS0332 (#4170)
1 parent86c023b commitc46ca4e

File tree

19 files changed

+42
-78
lines changed

19 files changed

+42
-78
lines changed

‎src/fsharp/FSComp.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ FieldNotContainedMutablesDiffer,"The module contains the field\n %s \nbut
161161
FieldNotContainedLiteralsDiffer,"The module contains the field\n %s \nbut its signature specifies\n %s \nThe 'literal' modifiers differ"
162162
FieldNotContainedTypesDiffer,"The module contains the field\n %s \nbut its signature specifies\n %s \nThe types differ"
163163
331,typrelCannotResolveImplicitGenericInstantiation,"The implicit instantiation of a generic construct at or near this point could not be resolved because it could resolve to multiple unrelated types, e.g. '%s' and '%s'. Consider using type annotations to resolve the ambiguity"
164-
332,typrelCannotResolveAmbiguityInOverloadedOperator,"Could not resolve the ambiguity inherent in the use of the operator '%s' at or near this program point. Consider using type annotations to resolve the ambiguity."
165164
333,typrelCannotResolveAmbiguityInPrintf,"Could not resolve the ambiguity inherent in the use of a 'printf'-style format string"
166165
334,typrelCannotResolveAmbiguityInEnum,"Could not resolve the ambiguity in the use of a generic construct with an 'enum' constraint at or near this position"
167166
335,typrelCannotResolveAmbiguityInDelegate,"Could not resolve the ambiguity in the use of a generic construct with a 'delegate' constraint at or near this position"

‎src/fsharp/TypeRelations.fs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ let ChooseTyparSolutionAndRange (g: TcGlobals) amap (tp:Typar) =
141141
match tpcwith
142142
| TyparConstraint.CoercesTo(x,m)->
143143
join m x,m
144-
| TyparConstraint.MayResolveMember(TTrait(_,nm,_,_,_,_),m)->
145-
errorR(Error(FSComp.SR.typrelCannotResolveAmbiguityInOverloadedOperator(DemangleOperatorName nm),m))
144+
| TyparConstraint.MayResolveMember(TTrait(_,_,_,_,_,_),m)->
146145
maxSoFar,m
147146
| TyparConstraint.SimpleChoice(_,m)->
148147
errorR(Error(FSComp.SR.typrelCannotResolveAmbiguityInPrintf(),m))

‎src/fsharp/xlf/FSComp.txt.cs.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<targetstate="translated">Nepovedlo se přeložit implicitní vytvoření instance obecného konstruktoru na této pozici nebo blízko ní, protože by se dala přeložit na víc nesouvisejících typů, třeba {0} a {1}. Tuto nejednoznačnost můžete vyřešit pomocí poznámek typu.</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unitid="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<targetstate="translated">Nepovedlo se vyřešit nejednoznačnost vyplývající z použití operátoru {0} na tomto místě v programu nebo blízko něho. Tuto nejednoznačnost můžete vyřešit pomocí poznámek typu.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unitid="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<targetstate="translated">Nepovedlo se vyřešit nejednoznačnost vyplývající z použití formátovacího řetězce ve stylu printf.</target>

‎src/fsharp/xlf/FSComp.txt.de.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<targetstate="translated">Die implizite Instanziierung eines generischen Konstrukts an diesem Punkt oder in dessen Umgebung konnte nicht aufgelöst werden, weil sie zu mehreren unzusammenhängenden Typen aufgelöst werden könnte, z.B. "{0}" und "{1}". Verwenden Sie Typanmerkungen, um die Mehrdeutigkeit aufzulösen.</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unitid="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<targetstate="translated">Die inhärente Mehrdeutigkeit bei der Verwendung des {0}-Operators an diesem Programmpunkt oder in dessen Umgebung konnte nicht aufgelöst werden. Verwenden Sie Typanmerkungen, um die Mehrdeutigkeit aufzulösen.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unitid="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<targetstate="translated">Die inhärente Mehrdeutigkeit bei der Verwendung einer printf-Formatzeichenfolge konnte nicht aufgelöst werden.</target>

‎src/fsharp/xlf/FSComp.txt.en.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<targetstate="new">The implicit instantiation of a generic construct at or near this point could not be resolved because it could resolve to multiple unrelated types, e.g. '{0}' and '{1}'. Consider using type annotations to resolve the ambiguity</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unitid="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<targetstate="new">Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unitid="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<targetstate="new">Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</target>

‎src/fsharp/xlf/FSComp.txt.es.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<targetstate="translated">No se pudo resolver la creación de instancia implícita de una construcción genérica en este punto o cerca de él porque se podía resolver en varios tipos no relacionados; por ejemplo, '{0}' y '{1}'. Considere el uso de anotaciones de tipo para resolver la ambigüedad.</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unitid="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<targetstate="translated">No se pudo resolver la ambigüedad inherente en el uso del operador '{0}' en este punto del programa o cerca de él. Considere el uso de anotaciones de tipo para resolver la ambigüedad.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unitid="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<targetstate="translated">No se pudo resolver la ambigüedad inherente en el uso de una cadena de formato de tipo 'printf'.</target>

‎src/fsharp/xlf/FSComp.txt.fr.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<targetstate="translated">Impossible de résoudre l'instanciation implicite d'une construction générique à cet emplacement ou à proximité, car elle peut être résolue en plusieurs types non liés, par exemple '{0}' et '{1}'. Utilisez des annotations de type pour résoudre l'ambigüité</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unitid="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<targetstate="translated">Impossible de résoudre l'ambigüité inhérente à l'utilisation de l'opérateur '{0}' à cet emplacement du programme ou à proximité. Utilisez des annotations de type pour résoudre l'ambigüité.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unitid="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<targetstate="translated">Impossible de résoudre l'ambigüité inhérente à l'utilisation d'une chaîne de format de style 'printf'</target>

‎src/fsharp/xlf/FSComp.txt.it.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<targetstate="translated">Non è stato possibile risolvere la creazione di istanza implicita di un costrutto generico in questo punto o in prossimità di esso perché la risoluzione potrebbe restituire più tipi non correlati, ad esempio '{0}' e '{1}'. Provare a usare annotazioni di tipo per risolvere l'ambiguità</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unitid="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<targetstate="translated">Non è stato possibile risolvere l'ambiguità relativa all'uso dell'operatore '{0}' in questo punto del programma o in prossimità di esso. Provare invece a risolvere l'ambiguità usando annotazioni di tipo.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unitid="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<targetstate="translated">Non è stato possibile risolvere l'ambiguità relativa all'uso della stringa di formato di stile 'printf'</target>

‎src/fsharp/xlf/FSComp.txt.ja.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<target state="translated">この場所またはその付近にあるジェネリック コンストラクトの暗黙的なインスタンス化を解決できませんでした。これは、関連性のない複数の型に解決される可能性があるためです (たとえば、'{0}' と '{1}')。あいまいさを解決するために、型の注釈を使用してください。</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unit id="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<target state="translated">このプログラム ポイント、またはその付近にある演算子 '{0}' の使用に関して、あいまいな継承を解決できませんでした。あいまいさを解決するために、型の注釈を使用してください。</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unit id="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<target state="translated">'printf' 形式の書式指定文字列の使用に関して、あいまいな継承を解決できませんでした</target>

‎src/fsharp/xlf/FSComp.txt.ko.xlf‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,6 @@
802802
<target state="translated">관련되지 않은 여러 형식(예: '{0}'과(와) '{1}')으로 확인될 수 있으므로 이 지점 또는 이 지점 근처에서 제네릭 구문의 암시적 인스턴스를 확인할 수 없습니다. 형식 주석을 사용하여 모호성을 해결하세요.</target>
803803
<note />
804804
</trans-unit>
805-
<trans-unit id="typrelCannotResolveAmbiguityInOverloadedOperator">
806-
<source>Could not resolve the ambiguity inherent in the use of the operator '{0}' at or near this program point. Consider using type annotations to resolve the ambiguity.</source>
807-
<target state="translated">’{0}' 연산자 사용과 관련하여 이 프로그램 지점 또는 이 지점 근처에서 본질적으로 발생하는 모호성을 해결할 수 없습니다. 형식 주석을 사용하여 모호성을 해결하세요.</target>
808-
<note />
809-
</trans-unit>
810805
<trans-unit id="typrelCannotResolveAmbiguityInPrintf">
811806
<source>Could not resolve the ambiguity inherent in the use of a 'printf'-style format string</source>
812807
<target state="translated">'printf' 스타일의 서식 문자열 사용과 관련하여 본질적으로 발생하는 모호성을 해결할 수 없습니다.</target>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp