linux-packaging-mono/mcs/tests/gtest-optional-28.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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;
}
}