23 lines
431 B
C#
23 lines
431 B
C#
|
// CS1928: Type `System.Collections.IList' does not contain a member `Frobnicate' and the best extension method overload `Extensions.Frobnicate<Test>(this Test)' has some invalid arguments
|
||
|
// 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> ();
|
||
|
}
|
||
|
}
|