Skip to content

Commit 8bca3da

Browse files
committed
Revert "Correct DefaultParameterValueAttribute in diagnostic"
This reverts commit a8cbbce.
1 parent abca25b commit 8bca3da

21 files changed

+45
-45
lines changed

src/Compilers/CSharp/Portable/CSharpResources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@ You should consider suppressing the warning only if you're sure that you don't w
40624062
<value>Named argument '{0}' is used out-of-position but is followed by an unnamed argument</value>
40634063
</data>
40644064
<data name="ERR_DefaultValueUsedWithAttributes" xml:space="preserve">
4065-
<value>Cannot specify default parameter value in conjunction with DefaultParameterValueAttribute or OptionalAttribute</value>
4065+
<value>Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute</value>
40664066
</data>
40674067
<data name="ERR_DefaultValueMustBeConstant" xml:space="preserve">
40684068
<value>Default parameter value for '{0}' must be a compile-time constant</value>

src/Compilers/CSharp/Portable/Symbols/Source/SourceComplexParameterSymbol.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttribut
756756

757757
if (HasDefaultArgumentSyntax)
758758
{
759-
// error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterValueAttribute or OptionalAttribute
759+
// error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
760760
diagnostics.Add(ErrorCode.ERR_DefaultValueUsedWithAttributes, arguments.AttributeSyntaxOpt.Name.Location);
761761
}
762762
}
@@ -952,7 +952,7 @@ private ConstantValue DecodeDefaultParameterValueAttribute(CSharpAttributeData a
952952

953953
if (HasDefaultArgumentSyntax)
954954
{
955-
// error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterValueAttribute or OptionalAttribute
955+
// error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
956956
if (diagnose)
957957
{
958958
diagnosticsOpt.Add(ErrorCode.ERR_DefaultValueUsedWithAttributes, node.Name.Location);

src/Compilers/CSharp/Portable/xlf/CSharpResources.cs.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.de.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.es.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.fr.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.it.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.ja.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.ko.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.pl.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)