a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
328 B
C#
31 lines
328 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public interface IC : IB
|
|
{
|
|
}
|
|
|
|
public partial interface IB : IEnumerable<char>
|
|
{
|
|
}
|
|
|
|
public partial interface IB : IA
|
|
{
|
|
}
|
|
|
|
public interface IA : IDisposable
|
|
{
|
|
}
|
|
|
|
class Driver
|
|
{
|
|
static void Foo<T> (T t) where T : IA
|
|
{
|
|
}
|
|
|
|
static void Main ()
|
|
{
|
|
IC i = null;
|
|
Foo<IC> (i);
|
|
}
|
|
} |