summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-partial-05.cs
blob: 877bfeba7867a8dad56dd49174d90a99266f02b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
	}
}