21 references to ERR_OperatorCantBeChecked
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2269
or ErrorCode.
ERR_OperatorCantBeChecked
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
36
diagnostics.Add(ErrorCode.
ERR_OperatorCantBeChecked
, syntax.CheckedKeyword.GetLocation(), SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(name)));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Semantics\ExtensionOperatorsTests.cs (5)
1543
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("+").WithLocation(6, 35),
12967
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("|").WithLocation(6, 35),
23183
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("|").WithLocation(6, 35),
23243
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("|").WithLocation(6, 35),
23304
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("|=").WithLocation(6, 30),
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
8102
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(3, 26),
8105
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(13, 22)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\CheckedUserDefinedOperatorsTests.cs (8)
925
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 30)
956
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("true").WithLocation(4, 33),
959
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("false").WithLocation(5, 33)
999
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(5, 30),
1035
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(6, 33),
2190
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(">>>").WithLocation(4, 30),
2201
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 30)
2244
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(5, 30),
Symbols\StaticAbstractMembersInInterfacesTests.cs (4)
32725
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 39)
32759
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("true").WithLocation(4, 42),
32762
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments("false").WithLocation(5, 42)
32973
Diagnostic(ErrorCode.
ERR_OperatorCantBeChecked
, "checked").WithArguments(op).WithLocation(4, 39)