linux-packaging-mono/mcs/tests/gtest-optional-38.cs

36 lines
625 B
C#
Raw Normal View History

class C
{
}
class Foo
{
public int SetValue (string name, string value, string defaultValue = null, bool preserveExistingCase = false)
{
return 1;
}
public int SetValue (string name, C value, C defaultValue = default(C), bool relativeToProject = true, C relativeToPath = default(C), bool mergeToMainGroup = false, string condition = null)
{
return 2;
}
public int SetValue (string name, object value, C defaultValue = null)
{
return 3;
}
}
class Test
{
static int Main()
{
var f = new Foo ();
C b = null;
C c = null;
if (f.SetValue ("a", b, c) != 2)
return 1;
return 0;
}
}