提交 831323c1 编写于 作者: V vsadov

A better error message. ( keyword should be in ' ' quotes )

上级 ac833d06
......@@ -5426,7 +5426,7 @@ internal class CSharpResources {
}
/// <summary>
/// Looks up a localized string similar to In arguments cannot be used in dynamically dispatched expession..
/// Looks up a localized string similar to Arguments with &apos;in&apos; modifier cannot be used in dynamically dispatched expessions..
/// </summary>
internal static string ERR_InDynamicMethodArg {
get {
......
......@@ -5239,6 +5239,6 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<value>A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern 'var _'.</value>
</data>
<data name="ERR_InDynamicMethodArg" xml:space="preserve">
<value>In arguments cannot be used in dynamically dispatched expession.</value>
<value>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</value>
</data>
</root>
......@@ -8586,8 +8586,8 @@ Pokud chcete odstranit toto varování, můžete místo toho použít /reference
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Um die Warnung zu beheben, können Sie stattdessen /reference verwenden (Einbett
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Para eliminar la advertencia puede usar /reference (establezca la propiedad Embe
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Pour supprimer l'avertissement, vous pouvez utiliser la commande /reference (dé
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Per rimuovere l'avviso, è invece possibile usare /reference (impostare la propr
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Aby usunąć ostrzeżenie, możesz zamiast tego użyć opcji /reference (ustaw w
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Para incorporar informações de tipo de interoperabilidade para os dois assembl
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ Uyarıyı kaldırmak için, /reference kullanabilirsiniz (Birlikte Çalışma T
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -8586,8 +8586,8 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<note />
</trans-unit>
<trans-unit id="ERR_InDynamicMethodArg">
<source>In arguments cannot be used in dynamically dispatched expession.</source>
<target state="new">In arguments cannot be used in dynamically dispatched expession.</target>
<source>Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</source>
<target state="new">Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.</target>
<note />
</trans-unit>
</body>
......
......@@ -3921,7 +3921,7 @@ static void M1()
var comp = CreateCompilationWithMscorlib45AndCSruntime(source, parseOptions: TestOptions.Regular7_2);
comp.VerifyEmitDiagnostics(
// (8,17): error CS8364: In arguments cannot be used in dynamically dispatched expession.
// (8,17): error CS8364: Arguments with 'in' modifier cannot be used in dynamically dispatched expessions.
// d.M2(in x);
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "x").WithLocation(8, 17)
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册