23 references to ERR_BadAwaitArg
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Await.cs (2)
342Error(diagnostics, ErrorCode.ERR_BadAwaitArg, node, expression.Type); 352Error(diagnostics, ErrorCode.ERR_BadAwaitArg, node, expression.Type);
Binder\Binder_Conversions.cs (1)
1167diagnostics.Add(ErrorCode.ERR_BadAwaitArg, node.Location, receiverOpt.Type);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
649diagnostics.Add(ErrorCode.ERR_BadAwaitArg, location, receiverOpt.Type);
Errors\ErrorFacts.cs (1)
1417case 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)
175Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new B()").WithArguments("B") 259Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 285Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 503Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 547Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 692Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 949Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1039Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1087Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1362Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1445Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A")); 1516Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A").WithLocation(10, 9), 1522Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new C()").WithArguments("C").WithLocation(12, 9),