9 references to ERR_ByRefTypeAndAwait
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
575case ErrorCode.ERR_ByRefTypeAndAwait:
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
84diagnostics.Add(ErrorCode.ERR_ByRefTypeAndAwait, local.Locations[0], local.TypeWithAnnotations);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAsyncSpillTests.cs (1)
3715Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await F3()").WithArguments("System.Span<int>").WithLocation(9, 66)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\AwaitExpressionTests.cs (1)
246Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await Task.FromResult(0)").WithArguments("System.TypedReference").WithLocation(8, 55));
Semantics\SpanStackSafetyTests.cs (4)
1286Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await I1()").WithArguments("System.Span<int>") 1294Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await I1()").WithArguments("System.Span<int>") 1337Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await I1()").WithArguments("System.Span<int>").WithLocation(14, 45) 1345Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await I1()").WithArguments("System.Span<int>").WithLocation(14, 45)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2933case ErrorCode.ERR_ByRefTypeAndAwait: