Files
codeql/csharp/ql/test/library-tests/csharp9/LambdaModifier.cs
2021-07-01 16:09:11 +02:00

18 lines
347 B
C#

using System;
using System.Threading.Tasks;
public class Class1
{
public async Task M1()
{
void m(Func<int, int> f) { }
const int z = 10;
m(static x => x + z);
m(x => x + z);
m(static delegate (int x) { return x + z; });
await Task.Run(async () => { await Task.CompletedTask; });
}
}