[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-597.cs
blobcbf9e7345e2ae50e5f8e9de97a6b73571401f6b5
1 using System;
3 namespace Test
5 class MainClass
7 public static int Main ()
9 if (!Test_1 (new Derived ()))
10 return 1;
12 if (!Test_2 (new S ()))
13 return 2;
15 return 0;
18 static bool Test_1<T> (Templated<T> template)
20 return template is Derived;
23 static bool Test_2<U> (IA<U> arg)
25 return arg is S;
29 public abstract class Templated<T>
33 public class Derived : Templated<Derived>
37 public interface IA<T>
41 public struct S : IA<S>