linux-packaging-mono/mcs/tests/gtest-partial-05.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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