New test.
authorMartin Baulig <martin@novell.com>
Wed, 29 Nov 2006 20:31:15 +0000 (20:31 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 29 Nov 2006 20:31:15 +0000 (20:31 -0000)
svn path=/trunk/mcs/; revision=68690

1  2 
mcs/tests/gtest-anon-15.cs

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..432501e0df5194d3975b03975698ae7e9e189bf0
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,32 @@@
++using System;
++
++public delegate void Foo<V> (V v);
++
++public delegate void Bar<W> (W w);
++
++
++class Test<T>
++{
++      public static void Hello<S> (T t, S s)
++      {
++              Foo<long> foo = delegate (long r) {
++                      Console.WriteLine (r);
++                      Bar<T> bar = delegate (T x) {
++                              Console.WriteLine (r);
++                              Console.WriteLine (t);
++                              Console.WriteLine (s);
++                              Console.WriteLine (x);
++                      };
++                      bar (t);
++              };
++              foo (5);
++      }
++}
++
++class X
++{
++      static void Main ()
++      {
++              Test<string>.Hello ("World", 3.1415F);
++      }
++}