a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
557 B
C#
32 lines
557 B
C#
using System;
|
|
|
|
public class NoTypeOptionalParameters
|
|
{
|
|
public static void Lambda (bool asc = true, params Func<string,bool>[] where)
|
|
{
|
|
}
|
|
|
|
public static void MethodGroup (bool asc = true, params Func<string,bool>[] where)
|
|
{
|
|
}
|
|
|
|
static bool Foo (string arg)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FooInstance (string arg)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
bool i = false;
|
|
Lambda (where: x => true, asc: i);
|
|
MethodGroup (where: Foo, asc: i);
|
|
MethodGroup (where: new NoTypeOptionalParameters ().FooInstance, asc: false);
|
|
return 0;
|
|
}
|
|
}
|