Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2011-09-05 15:11:41 +0400
committerMarek Safar <marek.safar@gmail.com>2011-09-05 22:02:32 +0400
commitab89771a4892d8c1641da6b68278be3a41dc08f9 (patch)
tree53006c624ab9d85fd2517b24cb0b9177c24d3f3c /mcs/tests/test-anon-129.cs
parent1bb13c6a6852359e9bf296abe878c2548420277a (diff)
Unify anonymous method test names
Diffstat (limited to 'mcs/tests/test-anon-129.cs')
-rw-r--r--mcs/tests/test-anon-129.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/tests/test-anon-129.cs b/mcs/tests/test-anon-129.cs
new file mode 100644
index 00000000000..a6b882fc438
--- /dev/null
+++ b/mcs/tests/test-anon-129.cs
@@ -0,0 +1,33 @@
+using System.Collections.Generic;
+
+class Test
+{
+ delegate T Creator<T> ();
+
+ static bool TryAction<T> (Creator<T> creator, out T output)
+ {
+ output = default (T);
+ return false;
+ }
+
+ static bool Func1<T> (IList<T> list, bool arg, out T value) where T : new ()
+ {
+ return TryAction<T> (delegate { return Item (list); }, out value);
+ }
+
+ public static T Item<T> (IList<T> list)
+ {
+ return GetSingleItem<T> (list);
+ }
+
+ public static T GetSingleItem<T> (IList<T> list)
+ {
+ return default (T);
+ }
+
+ public static void Main ()
+ {
+ Test value;
+ Func1 (new List<Test> (), false, out value);
+ }
+}