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)
2556
or ErrorCode.
ERR_SingleInapplicableBinaryOperator
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Semantics\ExtensionOperatorsTests.cs (21)
19833
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+").WithArguments("S2", "S2", "Extensions1.extension(S2).operator +(S2, int)").WithLocation(22, 16)
21893
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, op + "=").WithArguments("S1?", "S1?", "Extensions1.extension(ref S1).operator " + op + "=(S1)").WithLocation(18, 17)
22013
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, op + "=").WithArguments("S1?", "S1", "Extensions1.extension(ref S1).operator " + op + "=(S1)").WithLocation(18, 17),
22016
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, op + "=").WithArguments("S1", "S1?", "Extensions1.extension(ref S1).operator " + op + "=(S1)").WithLocation(19, 17)
22282
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "S1", "Extensions1.extension(ref S1?).operator +=(S1?)").WithLocation(17, 16),
22481
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "S2", "Extensions1.extension(ref S2).operator +=(S2)").WithLocation(23, 16),
22484
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "S1", "Extensions1.extension(ref S2).operator +=(S2)").WithLocation(25, 16),
22490
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1?", "S1?", "Extensions1.extension(ref S2).operator +=(S2)").WithLocation(29, 16),
22568
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1", "int", "Extensions1.extension(object).operator +=(int)").WithLocation(17, 12),
22571
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1?", "int", "Extensions1.extension(object).operator +=(int)").WithLocation(21, 12)
22780
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("int[]", "int", "Extensions1.extension(ref System.Span<int>).operator +=(int)").WithLocation(17, 16),
23121
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S1<int>", "int", "Extensions1.extension<int>(ref S1<int>).operator +=(int)").WithLocation(17, 16)
27328
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S2", "S2", "Extensions1.extension(ref S2).operator +=(int)").WithLocation(22, 12)
27432
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("S2", "S2", "Extensions1.extension(S2).operator +(S2, int)").WithLocation(22, 12)
29409
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(4, 4)
29457
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(4, 4));
29588
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +=(I2)").WithLocation(2, 4));
29615
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +=(I2)").WithLocation(2, 4));
29642
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(2, 4));
29674
Diagnostic(ErrorCode.
ERR_SingleInapplicableBinaryOperator
, "+=").WithArguments("I1", "int", "E1.extension(I1).operator +(I1, I2)").WithLocation(2, 4));
29731
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)