@@ -3724,6 +3724,15 @@ internal class CSharpResources {
}
}
/// <summary>
/// Looks up a localized string similar to Cannot pass argument with dynamic type to generic local function '{0}' with inferred type arguments..
// (8,18): error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type.
// (8,37): error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type.
// => await L(async m => L(async d => await d, m), p);
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda,"async d => await d").WithLocation(8,37),
// (8,35): error CS8322: Cannot pass argument with dynamic type to generic local function 'L' with inferred type arguments.
// => await L(async m => L(async d => await d, m), p);
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter,"L(async d => await d, m)").WithArguments("L").WithLocation(8,35),
// (8,32): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
// => await L(async m => L(async d => await d, m), p);