18 references to ERR_OperatorCantReturnVoid
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
982or ErrorCode.ERR_OperatorCantReturnVoid
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
786diagnostics.Add(ErrorCode.ERR_OperatorCantReturnVoid, this.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\ExtensionOperatorsTests.cs (9)
149Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, op).WithLocation(23, 37), 10630Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, op).WithLocation(24, 37), 10724Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, op).WithLocation(22, 37), 10883Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "!=").WithLocation(600, 37), 10886Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "==").WithLocation(601, 37), 11051Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">=").WithLocation(600, 37), 11054Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "<=").WithLocation(601, 37), 11219Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">").WithLocation(600, 37), 11222Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "<").WithLocation(601, 37),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\SymbolErrorTests.cs (5)
11264Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "+"), 11267Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "void"), 11273Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, "+"), 11276Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">>"), 11279Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">>>")
Symbols\UnsignedRightShiftTests.cs (2)
2135Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">>>").WithLocation(4, 33), 2138Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">>").WithLocation(9, 33),