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