Author: marek
Date: 2007-11-07 15:31:17 -0500 (Wed, 07 Nov 2007)
New Revision: 89160
Added:
trunk/mcs/tests/test-anon-72.cs
Log:
New test.
Added: trunk/mcs/tests/test-anon-72.cs
===================================================================
--- trunk/mcs/tests/test-anon-72.cs 2007-11-07 20:30:56 UTC (rev 89159)
+++ trunk/mcs/tests/test-anon-72.cs 2007-11-07 20:31:17 UTC (rev 89160)
@@ -0,0 +1,27 @@
+public class Test
+{
+ public delegate bool UnaryOperator(object self, out object res);
+ public void AddOperator(UnaryOperator target) {}
+ public bool TryGetValue(object self, out object value)
+ {
+ value = null;
+ return false;
+ }
+
+ public static void Main ()
+ {
+ }
+
+ void Foo ()
+ {
+ AddOperator (delegate(object self, out object res) {
+ object value;
+ if (TryGetValue(self, out value)) {
+ res = value;
+ if (res != null) return true;
+ }
+ res = null;
+ return false;
+ });
+ }
+}
Property changes on: trunk/mcs/tests/test-anon-72.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches