Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-196.cs
1 using System;
2 using System.Threading;
3 using System.Collections;
4 using System.Collections.Generic;
5
6 public class Dict : Dictionary <object, object>
7 {
8 }
9
10 public class Foo
11 {
12         public static int Main ()
13         {
14                 IDictionary<object, object> dict = new Dict ();
15
16                 dict.Add (new Object (), new Object ());
17                 foreach (object kv in dict) {
18                         Type t = kv.GetType ();
19                         if (t.IsGenericType)
20                                 return 0;
21                         else
22                                 return 1;
23                 }
24                 return 2;
25         }
26 }