8 references to ERR_ExplicitPropertyMismatchInitOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2054
case ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
:
Symbols\Source\SourcePropertySymbolBase.cs (1)
958
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, thisAccessor.Locations[0], thisAccessor, otherAccessor);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\InitOnlyMemberTests.cs (6)
2156
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "init").WithArguments("DerivedWithInit.I.Property.init", "I.Property.set").WithLocation(8, 25),
2162
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "init").WithArguments("DerivedWithInitAndGetter.I.Property.init", "I.Property.set").WithLocation(12, 30)
2191
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "set").WithArguments("DerivedWithoutInit.I.Property.set", "I.Property.init").WithLocation(8, 25),
2230
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "set").WithArguments("DerivedWithoutInit.I.Property.set", "I.Property.init").WithLocation(4, 25),
2388
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "init").WithArguments("IWithInitWithExplicitImplementationOfI2.I2.Property.init", "I2.Property.set").WithLocation(40, 26),
2391
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMismatchInitOnly
, "set").WithArguments("IWithoutInitWithExplicitImplementationOfI1.I1.Property.set", "I1.Property.init").WithLocation(45, 26),