Skip to content

Commit

Permalink
Fix incorrect diagnostic message for 'using'. Fixes #33746 (#39003)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger authored and chsienki committed Dec 13, 2019
1 parent 2ab265b commit 4ab85dd
Show file tree
Hide file tree
Showing 19 changed files with 85 additions and 85 deletions.
4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/CSharpResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2978,10 +2978,10 @@ A catch() block after a catch (System.Exception e) block can catch non-CLS excep
<value>Anonymous methods, lambda expressions, and query expressions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression or query expression and using the local instead.</value>
</data>
<data name="ERR_NoConvToIDisp" xml:space="preserve">
<value>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</value>
<value>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</value>
</data>
<data name="ERR_NoConvToIDispWrongAsync" xml:space="preserve">
<value>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</value>
<value>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</value>
</data>
<data name="ERR_NoConvToIAsyncDisp" xml:space="preserve">
<value>'{0}': type used in an asynchronous using statement must be implicitly convertible to 'System.IAsyncDisposable' or implement a suitable 'DisposeAsync' method.</value>
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">{0}: typ použitý v příkazu using musí být implicitně převoditelný na System.IDisposable nebo implementovat odpovídající metodu Dispose. Neměli jste v úmyslu použít await using místo using?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">{0}: typ použitý v příkazu using musí být implicitně převoditelný na System.IDisposable nebo implementovat odpovídající metodu Dispose. Neměli jste v úmyslu použít await using místo using?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ Blok catch() po bloku catch (System.Exception e) může zachytit výjimky, kter
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">{0}: typ použitý v příkazu using musí být implicitně převoditelný na System.IDisposable nebo implementovat odpovídající metodu Dispose.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">{0}: typ použitý v příkazu using musí být implicitně převoditelný na System.IDisposable nebo implementovat odpovídající metodu Dispose.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">"{0}": Der in einer using-Anweisung verwendete Typ muss implizit in "System.IDisposable" konvertiert werden können oder eine geeignete Dispose-Methode implementieren. Meinten Sie "await using" anstelle von "using"?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">"{0}": Der in einer using-Anweisung verwendete Typ muss implizit in "System.IDisposable" konvertiert werden können oder eine geeignete Dispose-Methode implementieren. Meinten Sie "await using" anstelle von "using"?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ Ein catch()-Block nach einem catch (System.Exception e)-Block kann nicht-CLS-Aus
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">"{0}": Der in einer using-Anweisung verwendete Typ muss implizit in "System.IDisposable" konvertiert werden können oder eine geeignete Dispose-Methode implementieren.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">"{0}": Der in einer using-Anweisung verwendete Typ muss implizit in "System.IDisposable" konvertiert werden können oder eine geeignete Dispose-Methode implementieren.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">"{0}": el tipo usado en una instrucción using debe poder convertirse de forma implícita en "System.IDisposable" o implemente un método "Dispose" adecuado. ¿Quiso decir "await using" en lugar de "using"?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">"{0}": el tipo usado en una instrucción using debe poder convertirse de forma implícita en "System.IDisposable" o implemente un método "Dispose" adecuado. ¿Quiso decir "await using" en lugar de "using"?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6089,8 +6089,8 @@ Un bloque catch() después de un bloque catch (System.Exception e) puede abarcar
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">"{0}": el tipo usado en una instrucción using debe poder convertirse de forma implícita en "System.IDisposable" o implemente un método "Dispose" adecuado.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">"{0}": el tipo usado en una instrucción using debe poder convertirse de forma implícita en "System.IDisposable" o implemente un método "Dispose" adecuado.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">'{0}' : le type utilisé dans une instruction using doit être implicitement convertible en 'System.IDisposable' ou implémenter une méthode 'Dispose' appropriée. Vouliez-vous dire 'await using' plutôt que 'using' ?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">'{0}' : le type utilisé dans une instruction using doit être implicitement convertible en 'System.IDisposable' ou implémenter une méthode 'Dispose' appropriée. Vouliez-vous dire 'await using' plutôt que 'using' ?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ Un bloc catch() après un bloc catch (System.Exception e) peut intercepter des e
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">'{0}' : le type utilisé dans une instruction using doit être implicitement convertible en 'System.IDisposable' ou implémenter une méthode 'Dispose' appropriée.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">'{0}' : le type utilisé dans une instruction using doit être implicitement convertible en 'System.IDisposable' ou implémenter une méthode 'Dispose' appropriée.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">'{0}': il tipo usato in un'istruzione using deve essere convertibile in modo implicito in 'System.IDisposable' o implementare un metodo 'Dispose' adatto. Si intendeva 'await using' invece di 'using'?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">'{0}': il tipo usato in un'istruzione using deve essere convertibile in modo implicito in 'System.IDisposable' o implementare un metodo 'Dispose' adatto. Si intendeva 'await using' invece di 'using'?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ Un blocco catch() dopo un blocco catch (System.Exception e) è in grado di rilev
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">'{0}': il tipo usato in un'istruzione using deve essere convertibile in modo implicito in 'System.IDisposable' o implementare un metodo 'Dispose' adatto.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">'{0}': il tipo usato in un'istruzione using deve essere convertibile in modo implicito in 'System.IDisposable' o implementare un metodo 'Dispose' adatto.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">'{0}': using ステートメントで使用される型は、暗黙的に 'System.IDisposable' に変換可能であるか、適切な 'Dispose' メソッドを実装する必要があります。'using' ではなく 'await using' ですか?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">'{0}': using ステートメントで使用される型は、暗黙的に 'System.IDisposable' に変換可能であるか、適切な 'Dispose' メソッドを実装する必要があります。'using' ではなく 'await using' ですか?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ AssemblyInfo.cs ファイルで RuntimeCompatibilityAttribute が false に設
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">'{0}': using ステートメントで使用される型は、暗黙的に 'System.IDisposable' に変換可能であるか、適切な 'Dispose' メソッドを実装する必要があります。</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">'{0}': using ステートメントで使用される型は、暗黙的に 'System.IDisposable' に変換可能であるか、適切な 'Dispose' メソッドを実装する必要があります。</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">'{0}': using 문에 사용된 형식은 암시적으로 'System.IDisposable'로 변환할 수 있거나 적합한 'Dispose' 메서드를 구현해야 합니다. 'using' 대신 'await using'을 사용하시겠습니까?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">'{0}': using 문에 사용된 형식은 암시적으로 'System.IDisposable'로 변환할 수 있거나 적합한 'Dispose' 메서드를 구현해야 합니다. 'using' 대신 'await using'을 사용하시겠습니까?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ catch (System.Exception e) 블록 뒤의 catch() 블록은 RuntimeCompatibilityA
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">'{0}': using 문에 사용된 형식은 암시적으로 'System.IDisposable'로 변환할 수 있거나 적합한 'Dispose' 메서드를 구현해야 합니다.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">'{0}': using 문에 사용된 형식은 암시적으로 'System.IDisposable'로 변환할 수 있거나 적합한 'Dispose' 메서드를 구현해야 합니다.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">„{0}”: Typ użyty w instrukcji using musi być jawnie konwertowalny na typ „System.IDisposable” lub musi implementować odpowiednią metodę „Dispose”. Czy chodziło Ci o użycie instrukcji „await using”, a nie „using”?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">„{0}”: Typ użyty w instrukcji using musi być jawnie konwertowalny na typ „System.IDisposable” lub musi implementować odpowiednią metodę „Dispose”. Czy chodziło Ci o użycie instrukcji „await using”, a nie „using”?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ Blok catch() po bloku catch (System.Exception e) może przechwytywać wyjątki n
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">„{0}”: Typ użyty w instrukcji using musi być jawnie konwertowalny na typ „System.IDisposable” lub musi implementować odpowiednią metodę „Dispose”.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">„{0}”: Typ użyty w instrukcji using musi być jawnie konwertowalny na typ „System.IDisposable” lub musi implementować odpowiednią metodę „Dispose”.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDispWrongAsync">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method. Did you mean 'await using' rather than 'using'?</source>
<target state="translated">'{0}': o tipo usado em uma instrução using deve ser implicitamente conversível em 'System.IDisposable' ou implementar um método 'Dispose' adequado. Você quis dizer 'await using' em vez de 'using'?</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'. Did you mean 'await using' rather than 'using'?</source>
<target state="needs-review-translation">'{0}': o tipo usado em uma instrução using deve ser implicitamente conversível em 'System.IDisposable' ou implementar um método 'Dispose' adequado. Você quis dizer 'await using' em vez de 'using'?</target>
<note />
</trans-unit>
<trans-unit id="ERR_NotNullConstraintMustBeFirst">
Expand Down Expand Up @@ -6088,8 +6088,8 @@ Um bloco catch() depois de um bloco catch (System.Exception e) poderá capturar
<note />
</trans-unit>
<trans-unit id="ERR_NoConvToIDisp">
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.</source>
<target state="translated">'{0}': o tipo usado em uma instrução using deve ser implicitamente conversível em 'System.IDisposable' ou implementar um método 'Dispose' adequado.</target>
<source>'{0}': type used in a using statement must be implicitly convertible to 'System.IDisposable'.</source>
<target state="needs-review-translation">'{0}': o tipo usado em uma instrução using deve ser implicitamente conversível em 'System.IDisposable' ou implementar um método 'Dispose' adequado.</target>
<note />
</trans-unit>
<trans-unit id="ERR_BadParamRef">
Expand Down
Loading

0 comments on commit 4ab85dd

Please sign in to comment.