Author: miguel
Date: 2006-07-20 02:01:21 -0400 (Thu, 20 Jul 2006)
New Revision: 62793
Added:
trunk/mcs/tests/gtest-280.cs
Log:
Add test
Added: trunk/mcs/tests/gtest-280.cs
===================================================================
--- trunk/mcs/tests/gtest-280.cs 2006-07-20 06:01:05 UTC (rev 62792)
+++ trunk/mcs/tests/gtest-280.cs 2006-07-20 06:01:21 UTC (rev 62793)
@@ -0,0 +1,23 @@
+//
+// This is a test for bug 78786
+// The issue was that the method call would trigger argument compatibility
+// checks, and on success it would re-resolve the tree and not every
+// expression copes with that gracefully
+//
+
+using System.Collections.Generic;
+
+public class Test {
+ public delegate int TestDel (int a);
+
+ public static void Main (string[] args) {
+ Dictionary<string, TestDel> dict = new Dictionary<string,
+TestDel> ();
+
+ dict["a"] = delegate (int b) {
+ return b;
+ };
+
+ System.Console.WriteLine (dict["a"] (2));
+ }
+}
Property changes on: trunk/mcs/tests/gtest-280.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches