21 references to ERR_NewVirtualInSealed
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (1)
957or ErrorCode.ERR_NewVirtualInSealed
Symbols\Source\SourceEventSymbol.cs (1)
682diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
926diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
538diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
162diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\RecordTests.cs (2)
19352Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "throw null").WithArguments("C.EqualityContract.get", "C").WithLocation(17, 12) 19437Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "throw null").WithArguments("D.EqualityContract.get", "D").WithLocation(20, 12),
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (4)
1182Diagnostic(ErrorCode.ERR_NewVirtualInSealed, op).WithArguments("C1.operator " + op + @"()", "C1").WithLocation(4, 33), 1185Diagnostic(ErrorCode.ERR_NewVirtualInSealed, op).WithArguments("C2.operator checked " + op + @"()", "C2").WithLocation(9, 42) 9420Diagnostic(ErrorCode.ERR_NewVirtualInSealed, op).WithArguments("C1.operator " + op + @"(int)", "C1").WithLocation(4, 33) 9440Diagnostic(ErrorCode.ERR_NewVirtualInSealed, op).WithArguments("C2.operator checked " + op + @"(int)", "C2").WithLocation(9, 42)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\SymbolErrorTests.cs (10)
10451new ErrorDescription { Code = (int)ErrorCode.ERR_NewVirtualInSealed, Line = 5, Column = 29 }, 10452new ErrorDescription { Code = (int)ErrorCode.ERR_NewVirtualInSealed, Line = 6, Column = 31 }, 10453new ErrorDescription { Code = (int)ErrorCode.ERR_NewVirtualInSealed, Line = 7, Column = 35 }, 10454new ErrorDescription { Code = (int)ErrorCode.ERR_NewVirtualInSealed, Line = 7, Column = 40 }, 10455new ErrorDescription { Code = (int)ErrorCode.ERR_NewVirtualInSealed, Line = 12, Column = 28 }, 10456new ErrorDescription { Code = (int)ErrorCode.ERR_NewVirtualInSealed, Line = 13, Column = 36 }); 10476Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "E").WithArguments("C.E", "C"), 10479Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "F").WithArguments("C.F", "C"), 10482Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "get").WithArguments("C.this[int].get", "C"), 10485Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "set").WithArguments("C.this[int].set", "C"),