Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-optional-05.cs
1 using System;
2
3 public class Blah
4 {
5         public delegate int MyDelegate (int i, int j = 7);
6         
7         public int Foo (int i, int j)
8         {
9                 return i+j;
10         }
11
12         public static int Main ()
13         {
14                 Blah i = new Blah ();
15                 MyDelegate del = new MyDelegate (i.Foo);
16
17                 int number = del (2);
18
19                 Console.WriteLine (number);
20                 if (number != 9)
21                         return 1;
22
23                 return 0;
24         }
25 }