23 references to ERR_BadAwaitArg
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Await.cs (2)
342Error(diagnostics, ErrorCode.ERR_BadAwaitArg, node, expression.Type); 353Error(diagnostics, ErrorCode.ERR_BadAwaitArg, node, expression.Type);
Binder\Binder_Conversions.cs (1)
2718diagnostics.Add(ErrorCode.ERR_BadAwaitArg, node.Location, receiverOpt.Type);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
670diagnostics.Add(ErrorCode.ERR_BadAwaitArg, location, receiverOpt.Type);
Errors\ErrorFacts.cs (1)
1478or ErrorCode.ERR_BadAwaitArg
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAsyncMainTests.cs (3)
240Diagnostic(ErrorCode.ERR_BadAwaitArg, "Task<int>").WithArguments("System.Threading.Tasks.Task<int>").WithLocation(12, 12), 277Diagnostic(ErrorCode.ERR_BadAwaitArg, "Task<int>").WithArguments("System.Threading.Tasks.Task<int>").WithLocation(12, 12), 313Diagnostic(ErrorCode.ERR_BadAwaitArg, "Task").WithArguments("System.Threading.Tasks.Task").WithLocation(12, 12),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\BetterCandidates.cs (2)
360Diagnostic(ErrorCode.ERR_BadAwaitArg, "await x").WithArguments("MyTask<int>").WithLocation(9, 17) 365Diagnostic(ErrorCode.ERR_BadAwaitArg, "await x").WithArguments("MyTask<int>").WithLocation(9, 17)
Semantics\BindingAwaitTests.cs (13)
176Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new B()").WithArguments("B") 260Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 286Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 504Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 548Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 693Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 950Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1040Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1088Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1363Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1446Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1517Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A").WithLocation(10, 9), 1523Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new C()").WithArguments("C").WithLocation(12, 9),