mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
18 lines
347 B
C#
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; });
|
|
}
|
|
}
|