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

41 lines
544 B
C#

// Compiler options: -t:library
using System;
using System.Runtime.InteropServices;
public struct S
{
}
public class Lib
{
public static int TestA ([Optional][DefaultParameterValue (1)] int u)
{
return u;
}
public static T TestB<T> (T a, [Optional] T u)
{
return u;
}
public static object TestC ([Optional] object a)
{
return a;
}
public static object TestC2 (object a = null)
{
return a;
}
public static int TestD ([Optional] int a, int i)
{
return a;
}
public static void TestS (S s = default (S))
{
}
}