15 references to ERR_CantChangeInitOnlyOnOverride
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2109
or ErrorCode.
ERR_CantChangeInitOnlyOnOverride
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1122
diagnostics.Add(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, overridingMemberLocation, overridingProperty, overriddenProperty);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
11294
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "P2").WithArguments("B.P2", "A.P2").WithLocation(10, 28),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InitOnlyMemberTests.cs (12)
1768
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithoutInit.Property", "Base.Property").WithLocation(13, 28),
1771
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithoutInitSetterOnly.Property", "Base.Property").WithLocation(22, 28),
1774
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedDerivedWithoutInit.Property", "DerivedGetterOnly.Property").WithLocation(35, 28)
1818
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithoutInit.Property", "Base.Property").WithLocation(8, 28),
1821
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithoutInitSetterOnly.Property", "Base.Property").WithLocation(16, 28)
1870
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithInit.Property", "Base.Property").WithLocation(9, 28),
1873
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithInitSetterOnly.Property", "Base.Property").WithLocation(18, 28),
1876
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedDerivedWithInit.Property", "DerivedGetterOnly.Property").WithLocation(31, 28)
1953
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithInit.Property", "Base.Property").WithLocation(8, 28),
1962
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("DerivedWithInitSetterOnly.Property", "Base.Property").WithLocation(16, 28),
3264
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "Property").WithArguments("Derived2.Property", "C.Property").WithLocation(8, 25),
3575
Diagnostic(ErrorCode.
ERR_CantChangeInitOnlyOnOverride
, "this").WithArguments("Derived2.this[int]", "C.this[int]").WithLocation(8, 25),