8 references to ERR_ExplicitPropertyMismatchInitOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2111
or ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
Symbols\Source\SourcePropertySymbolBase.cs (1)
1207
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, thisAccessor.GetFirstLocation(), thisAccessor, otherAccessor);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\InitOnlyMemberTests.cs (6)
2161
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "init").WithArguments("DerivedWithInit.I.Property.init", "I.Property.set").WithLocation(8, 25),
2167
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "init").WithArguments("DerivedWithInitAndGetter.I.Property.init", "I.Property.set").WithLocation(12, 30)
2196
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "set").WithArguments("DerivedWithoutInit.I.Property.set", "I.Property.init").WithLocation(8, 25),
2235
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "set").WithArguments("DerivedWithoutInit.I.Property.set", "I.Property.init").WithLocation(4, 25),
2393
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "init").WithArguments("IWithInitWithExplicitImplementationOfI2.I2.Property.init", "I2.Property.set").WithLocation(40, 26),
2396
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "set").WithArguments("IWithoutInitWithExplicitImplementationOfI1.I1.Property.set", "I1.Property.init").WithLocation(45, 26),