summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1929-2.cs
blob: 9982fef4de9919536548d7e963821ca39b5db22a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// CS1929: Type `System.Collections.IList' does not contain a member `Frobnicate' and the best extension method overload `Extensions.Frobnicate<Test>(this Test)' requires an instance of type `Test'
// Line: 20

using System;
using System.Collections;

static class Extensions
{
	public static void Frobnicate<T> (this T foo) where T : IList
	{
	}
}

public class Test
{
	IList mFoo;

	void Frobnicate ()
	{
		mFoo.Frobnicate<Test> ();
	}
}