31 references to ERR_NoGetToOverride
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
952
or ErrorCode.
ERR_NoGetToOverride
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
820
diagnostics.Add(ErrorCode.
ERR_NoGetToOverride
, overridingMemberLocation, overridingMember, overriddenProperty);
1137
diagnostics.Add(ErrorCode.
ERR_NoGetToOverride
, overridingMemberLocation, overridingProperty, overriddenProperty);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
FieldKeywordTests.cs (8)
7631
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B0.P3.get", "A.P3").WithLocation(5, 33));
7651
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B1.P3.get", "A.P3").WithLocation(5, 33));
7677
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B2.P3.get", "A.P3").WithLocation(5, 33),
7703
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B3.P3.get", "A.P3").WithLocation(5, 33));
7767
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B0.P3.get", "A.P3").WithLocation(5, 33));
7784
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B1.P3.get", "A.P3").WithLocation(5, 33));
7807
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B2.P3.get", "A.P3").WithLocation(5, 33),
7836
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("B3.P3.get", "A.P3").WithLocation(5, 33));
Semantics\RecordTests.cs (2)
20355
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "R").WithArguments("R.EqualityContract.get", "Base.EqualityContract").WithLocation(2, 8)
20368
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "typeof(R)").WithArguments("R.EqualityContract.get", "Base.EqualityContract").WithLocation(4, 56)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\InheritanceBindingTests.cs (10)
633
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoGetToOverride
, Line = 26, Column = 37 }, //5.get
634
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoGetToOverride
, Line = 27, Column = 37 }, //6.get
686
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived.this[long, char, long, char].get", "Base.this[long, char, long, char]"),
688
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived.this[long, char, char, long].get", "Base.this[long, char, char, long]"),
2634
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived.Property8.get", "Base.Property8").WithLocation(30, 40),
2637
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived.Property9.get", "Base.Property9").WithLocation(31, 40),
2732
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived.this[int, string, string, string].get", "Base.this[int, string, string, string]").WithLocation(30, 73),
2735
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived.this[string, int, int, int].get", "Base.this[string, int, int, int]").WithLocation(31, 67),
6100
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("Derived2.Property1.get", "Derived<int>.Property1"),
6221
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "Property2").WithArguments("Derived.Property2", "Base<int>.Property2"),
Semantics\InitOnlyMemberTests.cs (3)
1956
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("DerivedWithInit.Property.get", "Base.Property").WithLocation(8, 39),
1959
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("DerivedWithoutInit.Property.get", "Base.Property").WithLocation(12, 39),
1965
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("DerivedWithoutInitGetterOnly.Property.get", "Base.Property").WithLocation(20, 39)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
288
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("TestClass3.P2.get", "TestClass2.P2"),
844
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("CSIPropImpl.WriteOnlyProp.get", "VBIPropImpl.WriteOnlyProp"),
Symbols\OverriddenOrHiddenMembersTests.cs (1)
1890
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "get").WithArguments("TestClass3.P2.get", "TestClass2.P2"),
Symbols\SymbolErrorTests.cs (2)
10270
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoGetToOverride
, Line = 13, Column = 9 });
10292
Diagnostic(ErrorCode.
ERR_NoGetToOverride
, "P2").WithArguments("C.P2", "A.P2"));