[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-505.cs
blob0150d110e55dbddd28dfa998e5f4cea539fe7e9c
1 using System;
2 using System.Collections.Generic;
4 class C
6 static int Test (List<int> arg)
8 return 10;
11 static int Test (string arg)
13 return 9;
16 static int Test (int arg)
18 return 8;
21 static R Method<T, R> (IEnumerable<T> t, Func<T, R> a)
23 return a (default (T));
26 static R Method2<T, R> (IEnumerable<T> t, Func<List<T>, R> a)
28 return a (default (List<T>));
31 public static int Main ()
33 if (Method (new int[] { 1 }, Test) != 8)
34 return 1;
36 if (Method2 (new int[] { 1 }, Test) != 10)
37 return 2;
39 return 0;