a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
23 lines
291 B
C#
23 lines
291 B
C#
interface IFoo {}
|
|
interface IBar {}
|
|
|
|
class C1<IFoo> where IFoo : IBar
|
|
{
|
|
}
|
|
|
|
abstract class C2
|
|
{
|
|
public abstract C1<T> Hoge<T> (C1<T> c) where T : IBar;
|
|
}
|
|
|
|
class C3 : C2
|
|
{
|
|
public override C1<T> Hoge<T> (C1<T> c) { return null; }
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{ }
|
|
}
|