mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
449 B
C#
16 lines
449 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
public class LambdaParameters
|
|
{
|
|
public void M1()
|
|
{
|
|
var l1 = (int x, int y = 1) => x + y;
|
|
var l2 = (object? o = default) => o;
|
|
var l3 = (int x, int y = 1, int z = 2) => x + y + z;
|
|
var l4 = ([Optional, DefaultParameterValue(7)] int x) => x;
|
|
var l5 = ([Optional, DateTimeConstant(14L)] DateTime x) => x;
|
|
}
|
|
}
|