[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git] / mono / tests / bug-bxc-795.cs
blobd8e88e60c824450be3273cb3ecdb2949109fa07d
1 public abstract class BaseClass<T> {}
2 public class ClassA : BaseClass<ClassB> { }
3 public class ClassB : ClassA {}
5 public class TestClass
7 static int Main () {
8 object x = new ClassB();
9 if (!(x is ClassA))
10 return 1;
11 if (!(x is BaseClass <ClassB>))
12 return 2;
13 return 0;