14 references to ERR_OperatorCantBeChecked
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2213
case ErrorCode.
ERR_OperatorCantBeChecked
:
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
34
diagnostics.Add(ErrorCode.
ERR_OperatorCantBeChecked
, syntax.CheckedKeyword.GetLocation(), SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(name)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\CheckedUserDefinedOperatorsTests.cs (8)
900
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 30)
931
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("true").WithLocation(4, 33),
934
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("false").WithLocation(5, 33)
974
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(5, 30),
1010
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(6, 33),
2165
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(">>>").WithLocation(4, 30),
2176
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 30)
2219
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(5, 30),
Symbols\StaticAbstractMembersInInterfacesTests.cs (4)
32211
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 39)
32245
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("true").WithLocation(4, 42),
32248
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("false").WithLocation(5, 42)
32459
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 39)