[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-577.cs
blob786eead37ea9766d198326af56fee11f26b57dda
1 using System;
3 static class Program
5 public interface I1
7 string Id { get; }
10 public class BaseClass
12 public int Id {
13 get {
14 return 4;
19 public class Derived : BaseClass, I1
21 public new string Id {
22 get {
23 return "aa";
28 static void Generic<T> (T item) where T : BaseClass, I1
30 if (item.Id != 4)
31 throw new Exception ("Doom!");
34 static void Main ()
36 Generic (new Derived ());