summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-exmethod-32.cs
blob: d8e2f12c8a54b958caec395fe311eaa15aeff6c8 (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
32
33
34
35
36
37
using System;
using System.Collections;
using System.Linq;

class A : IEnumerable
{
	protected int Count
	{
		get { return 0; }
	}

	IEnumerator IEnumerable.GetEnumerator ()
	{
		return null;
	}
}

class G<T> where T : A
{
	void Test ()
	{
		T var = null;
		int i = var.Count ();
	}
}

public static class Extensions
{
	public static int Count (this IEnumerable seq)
	{
		return 0;
	}

	public static void Main ()
	{
	}
}