2010-05-25 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-exmethod-32.cs
blobd8e2f12c8a54b958caec395fe311eaa15aeff6c8
1 using System;
2 using System.Collections;
3 using System.Linq;
5 class A : IEnumerable
7 protected int Count
9 get { return 0; }
12 IEnumerator IEnumerable.GetEnumerator ()
14 return null;
18 class G<T> where T : A
20 void Test ()
22 T var = null;
23 int i = var.Count ();
27 public static class Extensions
29 public static int Count (this IEnumerable seq)
31 return 0;
34 public static void Main ()