Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1929-2.cs
1 // 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'
2 // Line: 20
3
4 using System;
5 using System.Collections;
6
7 static class Extensions
8 {
9         public static void Frobnicate<T> (this T foo) where T : IList
10         {
11         }
12 }
13
14 public class Test
15 {
16         IList mFoo;
17
18         void Frobnicate ()
19         {
20                 mFoo.Frobnicate<Test> ();
21         }
22 }