11 references to ERR_OperatorInStaticClass
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1063or ErrorCode.ERR_OperatorInStaticClass
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
77diagnostics.Add(ErrorCode.ERR_OperatorInStaticClass, location, this);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (5)
102Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C1.operator " + op + @"()").WithLocation(4, 25), 105Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C1.operator checked " + op + @"()").WithLocation(5, 33) 8215Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C1.operator " + op + @"(int)").WithLocation(4, 25) 8220Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C1.operator " + op + @"(int)").WithLocation(4, 25), 8223Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C1.operator checked " + op + @"(int)").WithLocation(6, 33)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\CheckedUserDefinedOperatorsTests.cs (3)
430Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C.operator checked " + op + "(C)").WithLocation(4, 38), 1603Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C.operator checked " + op + "(C, C)").WithLocation(4, 38), 2825Diagnostic(ErrorCode.ERR_OperatorInStaticClass, "int").WithArguments("C.explicit operator checked int(C)").WithLocation(4, 45),
Symbols\SymbolErrorTests.cs (1)
13308Diagnostic(ErrorCode.ERR_OperatorInStaticClass, "+").WithArguments("C.operator +(C)"),