linux-packaging-mono/mcs/tests/gtest-exmethod-32.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

38 lines
422 B
C#

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 ()
{
}
}