3 references to ERR_BadAwaitInStaticVariableInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Await.cs (1)
164info = new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitInStaticVariableInitializer);
Errors\ErrorFacts.cs (1)
1727or ErrorCode.ERR_BadAwaitInStaticVariableInitializer
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAsyncTests.cs (1)
6148Diagnostic(ErrorCode.ERR_BadAwaitInStaticVariableInitializer, "await System.Threading.Tasks.Task.FromResult(1)").WithLocation(2, 5));