linux-packaging-mono/mcs/tests/gtest-partial-05.cs

31 lines
328 B
C#
Raw Normal View History

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);
}
}