[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-535.cs
blob9a35120dc414ca5bca7bd5ac8ffcd01809e6f7fa
1 class G<T> where T : class
5 class A
7 static int Foo<T> (T a, G<T> y) where T : class
9 return 1;
12 static int Foo<T> (T a, object y)
14 return 2;
17 public static int Main ()
19 if (A.Foo<int> (99, null) != 2)
20 return 1;
22 if (A.Foo (66, null) != 2)
23 return 2;
25 return 0;