[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / dtest-optional-02.cs
1 using System.Runtime.InteropServices;
2
3 public class Test
4 {
5         public static object Foo ([Optional, DefaultParameterValue (1)] dynamic i)
6         {
7                 return i;
8         }
9
10         public static int Main ()
11         {
12                 var res = (int) Foo ();
13                 if (res != 1)
14                         return 1;
15
16                 return 0;
17         }
18 }