diff options
author | Marek Safar <marek.safar@gmail.com> | 2011-09-05 15:11:41 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2011-09-05 22:02:32 +0400 |
commit | ab89771a4892d8c1641da6b68278be3a41dc08f9 (patch) | |
tree | 53006c624ab9d85fd2517b24cb0b9177c24d3f3c /mcs/tests/test-anon-115.cs | |
parent | 1bb13c6a6852359e9bf296abe878c2548420277a (diff) |
Unify anonymous method test names
Diffstat (limited to 'mcs/tests/test-anon-115.cs')
-rw-r--r-- | mcs/tests/test-anon-115.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/test-anon-115.cs b/mcs/tests/test-anon-115.cs new file mode 100644 index 00000000000..432501e0df5 --- /dev/null +++ b/mcs/tests/test-anon-115.cs @@ -0,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); + } +} |