diff --git a/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs b/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs index 96d06e54b9f2b0b2c0c6db8db592abd317d5845b..c0b93630f563282c553ee3dedd0c7ef8ff5a935f 100644 --- a/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs +++ b/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs @@ -791,7 +791,7 @@ internal class CSharpResources { } /// - /// Looks up a localized string similar to Field-like events are not allowed in readonly structs.. + /// Looks up a localized string similar to Auto-implemented instance properties in readonly structs must be readonly.. /// internal static string ERR_AutoPropsInRoStruct { get { @@ -4571,7 +4571,7 @@ internal class CSharpResources { } /// - /// Looks up a localized string similar to Instance fields of readonly structs must be readonly.. + /// Looks up a localized string similar to Field-like events are not allowed in readonly structs.. /// internal static string ERR_FieldlikeEventsInRoStruct { get { @@ -4580,7 +4580,7 @@ internal class CSharpResources { } /// - /// Looks up a localized string similar to Auto-implemented instance properties in readonly structs must be readonly.. + /// Looks up a localized string similar to Instance fields of readonly structs must be readonly.. /// internal static string ERR_FieldsInRoStruct { get { diff --git a/src/Compilers/CSharp/Portable/CSharpResources.resx b/src/Compilers/CSharp/Portable/CSharpResources.resx index 4add8c9b363134f32c6ae8f108f0b211f4ae3f0c..787ababb69edeaa35b7bf6fa8b1f0a53321e6359 100644 --- a/src/Compilers/CSharp/Portable/CSharpResources.resx +++ b/src/Compilers/CSharp/Portable/CSharpResources.resx @@ -5124,12 +5124,12 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ The type name '{0}' is reserved to be used by the compiler. - Auto-implemented instance properties in readonly structs must be readonly. + Instance fields of readonly structs must be readonly. - Field-like events are not allowed in readonly structs. + Auto-implemented instance properties in readonly structs must be readonly. - Instance fields of readonly structs must be readonly. + Field-like events are not allowed in readonly structs. diff --git a/src/Compilers/CSharp/Test/Semantic/Semantics/ReadOnlyStructsTests.cs b/src/Compilers/CSharp/Test/Semantic/Semantics/ReadOnlyStructsTests.cs index 67ada15febcbfce667eb421a84bad72dd3a842e4..f5afcacc355fb272ff8639db9f60085239621974 100644 --- a/src/Compilers/CSharp/Test/Semantic/Semantics/ReadOnlyStructsTests.cs +++ b/src/Compilers/CSharp/Test/Semantic/Semantics/ReadOnlyStructsTests.cs @@ -154,7 +154,6 @@ interface I1 ); } - private static string ilreadonlyStructWithWriteableFieldIL = @" .class private auto ansi sealed beforefieldinit Microsoft.CodeAnalysis.EmbeddedAttribute extends [mscorlib]System.Attribute