From 7383c584066ad6def2bdf2416ed20108973e4287 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Wed, 1 Oct 2008 08:57:08 +0000 Subject: [PATCH] New test. svn path=/trunk/mcs/; revision=114550 --- mcs/tests/gtest-anon-46.cs | 21 +++++++++++++++++++++ mcs/tests/ver-il-gmcs.xml | 24 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100755 mcs/tests/gtest-anon-46.cs diff --git a/mcs/tests/gtest-anon-46.cs b/mcs/tests/gtest-anon-46.cs new file mode 100755 index 00000000000..00767aa64b6 --- /dev/null +++ b/mcs/tests/gtest-anon-46.cs @@ -0,0 +1,21 @@ +using System; + +public class TheClass +{ + static void Foo (T t, Func f) + { + Func> d = () => { + if (t != null) { + return () => f (t); + } + + return null; + }; + d (); + } + + public static void Main () + { + Foo (1, null); + } +} diff --git a/mcs/tests/ver-il-gmcs.xml b/mcs/tests/ver-il-gmcs.xml index d9b944cee40..3603be9bf2a 100644 --- a/mcs/tests/ver-il-gmcs.xml +++ b/mcs/tests/ver-il-gmcs.xml @@ -12527,6 +12527,30 @@ + + + + 7 + + + 41 + + + 8 + + + + + 7 + + + 31 + + + 18 + + + -- 2.11.4.GIT