24 references to ERR_SingleInapplicableBinaryOperator
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.OperatorResolutionForReporting.cs (1)
140
Error(diagnostics, ErrorCode.
ERR_SingleInapplicableBinaryOperator
, toReport, leftDisplay, rightDisplay, inapplicableMember);
Errors\ErrorFacts.cs (1)
2547
or ErrorCode.
ERR_SingleInapplicableBinaryOperator
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Semantics\ExtensionOperatorsTests.cs (21)
19916
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+").WithArguments("S2", "S2", "Extensions1.extension(S2).operator +(S2, int)").WithLocation(22, 16)
21976
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, op + "=").WithArguments("S1?", "S1?", "Extensions1.extension(ref S1).operator " + op + "=(S1)").WithLocation(18, 17)
22096
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, op + "=").WithArguments("S1?", "S1", "Extensions1.extension(ref S1).operator " + op + "=(S1)").WithLocation(18, 17),
22099
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, op + "=").WithArguments("S1", "S1?", "Extensions1.extension(ref S1).operator " + op + "=(S1)").WithLocation(19, 17)
22365
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "S1", "Extensions1.extension(ref S1?).operator +=(S1?)").WithLocation(17, 16),
22564
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "S2", "Extensions1.extension(ref S2).operator +=(S2)").WithLocation(23, 16),
22567
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "S1", "Extensions1.extension(ref S2).operator +=(S2)").WithLocation(25, 16),
22573
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1?", "S1?", "Extensions1.extension(ref S2).operator +=(S2)").WithLocation(29, 16),
22651
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "int", "Extensions1.extension(object).operator +=(int)").WithLocation(17, 12),
22654
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1?", "int", "Extensions1.extension(object).operator +=(int)").WithLocation(21, 12)
22863
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("int[]", "int", "Extensions1.extension(ref System.Span<int>).operator +=(int)").WithLocation(17, 16),
23204
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1<int>", "int", "Extensions1.extension<int>(ref S1<int>).operator +=(int)").WithLocation(17, 16)
27434
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S2", "S2", "Extensions1.extension(ref S2).operator +=(int)").WithLocation(22, 12)
27538
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S2", "S2", "Extensions1.extension(S2).operator +(S2, int)").WithLocation(22, 12)
29515
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(4, 4)
29563
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(4, 4));
29694
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +=(I2)").WithLocation(2, 4));
29721
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +=(I2)").WithLocation(2, 4));
29748
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(2, 4));
29780
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(2, 4));
29837
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("C1", "C3", "E1.extension(C1).operator +(C1, C2)").WithLocation(2, 4));
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
16955
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("C1", "int", "C1.operator +=(params int[])").WithLocation(7, 11)