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