Another dist build fix for rx integration, move *.cs file to safe-ish path.
[mono-project.git] / mcs / tests / gtest-optional-11-lib.cs
blob0c944b7cfc22c635a06b5dd49878a4a0e3b1e139
1 // Compiler options: -t:library
3 using System;
4 using System.Runtime.InteropServices;
6 public struct S
10 public class Lib
12 public static int TestA ([Optional][DefaultParameterValue (1)] int u)
14 return u;
17 public static T TestB<T> (T a, [Optional] T u)
19 return u;
22 public static object TestC ([Optional] object a)
24 return a;
27 public static object TestC2 (object a = null)
29 return a;
32 public static int TestD ([Optional] int a, int i)
34 return a;
37 public static void TestS (S s = default (S))