[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / gtest-280.cs
blob66dd34e560788a01f36ec22055f98c0298ef7d9a
1 //
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
6 //
8 using System.Collections.Generic;
10 public class Test {
11 public delegate int TestDel (int a);
13 public static void Main (string[] args) {
14 Dictionary<string, TestDel> dict = new Dictionary<string,
15 TestDel> ();
17 dict["a"] = delegate (int b) {
18 return b;
21 System.Console.WriteLine (dict["a"] (2));