2 // Test case from bug 80518
14 public string Hello { get { return "Hello"; }
}
17 public abstract class Printer
19 public abstract void Print
<T
>(T obj
) where T
: BaseClass
;
22 public class PrinterImpl
: Printer
24 public override void Print
<T
>(T obj
)
26 Console
.WriteLine(obj
.Hello
);
32 public static void Main( string[] args
)
34 BaseClass bc
= new BaseClass();
35 Printer p
= new PrinterImpl();
36 p
.Print
<BaseClass
>(bc
);