69 references to ERR_HidingAbstractMethod
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
941
or ErrorCode.
ERR_HidingAbstractMethod
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1697
diagnostics.Add(ErrorCode.
ERR_HidingAbstractMethod
, associatedPropertyOrEvent.GetFirstLocation(), associatedPropertyOrEvent, hiddenMember);
1712
diagnostics.Add(ErrorCode.
ERR_HidingAbstractMethod
, hidingMemberLocation, hidingMember, hiddenMember);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Semantics\RecordTests.cs (5)
12134
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "X").WithArguments("B.X()", "A.X").WithLocation(9, 21),
12137
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Y").WithArguments("B.Y", "A.Y").WithLocation(10, 23),
15649
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "B").WithArguments("B.Deconstruct(out int, out int)", "A.Deconstruct(out int, out int)").WithLocation(6, 17)
18298
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "B").WithArguments("B.Equals(B?)", "A.Equals(B)").WithLocation(7, 17)
30067
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "I").WithArguments("Derived.I()", "Base.I").WithLocation(8, 16),
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (10)
2480
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C2.operator " + op + @"()", "C1.operator " + op + @"()").WithLocation(10, 25),
2486
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C2.operator checked " + op + @"()", "C1.operator checked " + op + @"()").WithLocation(11, 33),
2492
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C3.operator " + op + @"()", "C1.operator " + op + @"()").WithLocation(16, 29),
2495
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C3.operator checked " + op + @"()", "C1.operator checked " + op + @"()").WithLocation(17, 37)
11108
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C2.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(10, 25),
11114
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C2.operator checked " + op + @"(int)", "C1.operator checked " + op + @"(int)").WithLocation(11, 33),
11120
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C3.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(16, 29),
11123
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C3.operator checked " + op + @"(int)", "C1.operator checked " + op + @"(int)").WithLocation(17, 37)
11153
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C2.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(10, 25),
11159
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, op).WithArguments("C3.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(16, 29)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (26)
Semantics\InheritanceBindingTests.cs (26)
458
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 17 },
460
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 12, Column = 26 },
462
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 13, Column = 25 },
486
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 17 },
488
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 12, Column = 26 },
490
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 13, Column = 25 },
514
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 17 },
516
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 12, Column = 26 },
518
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 13, Column = 25 },
543
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event1").WithArguments("Goo.Event1", "AbstractGoo.Event1"),
549
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event2").WithArguments("Goo.Event2", "AbstractGoo.Event2"),
555
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event3").WithArguments("Goo.Event3", "AbstractGoo.Event3"),
4407
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 28, Column = 17, IsWarning = false },
4409
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 29, Column = 26, IsWarning = false },
4411
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 30, Column = 25, IsWarning = false },
4487
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 28, Column = 17, IsWarning = false }, //1.get/set
4489
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 29, Column = 26, IsWarning = false }, //2.get/set
4491
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 30, Column = 25, IsWarning = false }, //3.get/set
4567
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 28, Column = 17, IsWarning = false }, //1.get/set
4569
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 29, Column = 26, IsWarning = false }, //2.get/set
4571
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 30, Column = 25, IsWarning = false }, //3.get/set
4648
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event1").WithArguments("Derived.Event1", "Base.Event1"),
4654
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event2").WithArguments("Derived.Event2", "Base.Event2"),
4660
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event3").WithArguments("Derived.Event3", "Base.Event3"),
6152
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Method").WithArguments("Base2.Method(int, System.Exception[])", "Base.Method(int, params System.Exception[])"),
6156
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Method").WithArguments("Base2.Method(int, params int[])", "Base.Method(int, int[])"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (25)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
257
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P2").WithArguments("TestClass2.P2", "TestClass1.P2"));
286
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P2").WithArguments("TestClass2.P2", "TestClass1.P2"),
Symbols\OverriddenOrHiddenMembersTests.cs (1)
1889
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P2").WithArguments("TestClass2.P2", "TestClass1.P2"),
Symbols\SymbolErrorTests.cs (22)
2158
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("B.P", "A.P").WithLocation(7, 51),
9463
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 34 });
9507
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "goo").WithArguments("NS.A3.goo", "NS.B3.goo()").WithLocation(31, 32),
9510
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "@goo").WithArguments("A1.goo", "B1.goo").WithLocation(9, 24),
9513
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "@goo").WithArguments("A1.A2.goo", "A1.B2.goo()").WithLocation(18, 36),
9547
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "f").WithArguments("D.f", "A.f()"));
9620
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived1.M()", "Base.M()"),
9622
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived1.P()", "Base.P"),
9624
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived2.M", "Base.M()"),
9626
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived2.P", "Base.P"),
9628
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived3.M", "Base.M()"),
9630
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived3.P", "Base.P"),
9632
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived4.M()", "Base.M()"),
9634
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived4.P()", "Base.P"),
9636
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived5.M", "Base.M()"),
9638
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived5.P", "Base.P"),
9640
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived6.M", "Base.M()"),
9642
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived6.P", "Base.P"),
9644
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived7.M()", "Base.M()"),
9646
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived7.P", "Base.P"),
9648
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived8.M", "Base.M()"),
9650
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived8.P", "Base.P"));