2009-07-16 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-anon-25.cs
blob7aafe7f7bdbf3ddeb8594c42ddad2b9af9a1dde5
1 using System;
3 delegate int D (int arg);
5 class X {
7 static int Main ()
9 D x = T (1);
11 int v = x (10);
12 Console.WriteLine ("Should be 11={0}", v);
13 return v == 11 ? 0 : 1;
16 static D T (int a)
18 D d = delegate (int arg) {
19 return arg + a;
22 return d;