2 // This is a test for bug 78786
3 // The issue was that the method call would trigger argument compatibility
4 // checks, and on success it would re-resolve the tree and not every
5 // expression copes with that gracefully
8 using System.Collections.Generic;
11 public delegate int TestDel (int a);
13 public static void Main (string[] args) {
14 Dictionary<string, TestDel> dict = new Dictionary<string,
17 dict["a"] = delegate (int b) {
21 System.Console.WriteLine (dict["a"] (2));