2 // Second test from bug 80518
13 public string Hello { get { return "Hello"; } }
16 public abstract class Printer
18 public abstract void Print<T>(object x) where T: BaseClass;
21 public class PrinterImpl: Printer
23 public override void Print<T>(object x)
25 Console.WriteLine((x as T).Hello);
31 public static void Main( string[] args )
33 BaseClass bc = new BaseClass();
34 Printer p = new PrinterImpl();
35 p.Print<BaseClass>(bc);