Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-optional-11-lib.cs
1 // Compiler options: -t:library
2
3 using System;
4 using System.Runtime.InteropServices;
5
6 public struct S
7 {
8 }
9
10 public class Lib
11 {
12         public static int TestA ([Optional][DefaultParameterValue (1)] int u)
13         {
14                 return u;
15         }
16
17         public static T TestB<T> (T a, [Optional] T u)
18         {
19                 return u;
20         }
21         
22         public static object TestC ([Optional] object a)
23         {
24                 return a;
25         }
26         
27         public static object TestC2 (object a = null)
28         {
29                 return a;
30         }
31
32         public static int TestD ([Optional] int a, int i)
33         {
34                 return a;
35         }
36
37         public static void TestS (S s = default (S))
38         {
39         }
40 }